String vs GString Performance

Do we have hard performance data that demonstrate the advantage of single quotes over double quotes? Most people will be more comfortable with double quotes.

I know that GString can be used when we evaluate an expression and perform a lazy evaluation

+5
source share
1 answer

Here is a link to some tests performed back in '09:

http://pstehlik.com/2009/01/the-speed-difference-between-the-different-types-of-strings-in-groovy-and-grails/

The results seemed to vary greatly depending on whether you were using String or GString, what you were doing with this object, and whether you were running on the console or on Jetty.

3 . script - , Groovy, , . nabble post, .

, GString, . .

+4

All Articles