danielsun1106 commented on pull request #1309:
URL: https://github.com/apache/groovy/pull/1309#issuecomment-662822845


   Here is the test script. Groovy 3.0.5 costs about 8500ms, and this PR costs 
about 210ms.
   
   ```groovy
   long b = System.currentTimeMillis()
   def gstr = "integer: ${1}, double: ${1.2d}, string: ${'x'}, class: 
${Map.class}, boolean: ${true}"
   for (int i = 0; i < 10000000; i++) {
        gstr.toString()
   }
   long e = System.currentTimeMillis()
   println "${e - b}ms"
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to