You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by GitBox <gi...@apache.org> on 2020/07/23 09:13:20 UTC

[GitHub] [groovy] paulk-asert commented on pull request #1322: GROOVY-9637: Improve the performance of GString

paulk-asert commented on pull request #1322:
URL: https://github.com/apache/groovy/pull/1322#issuecomment-662901999


   It is still a breaking change but much fewer cases now:
   ```
   def s = ['The ', ' brown '] as String[]
   def v = ['quick', 'fox'] as Object[]
   def gstr = new org.codehaus.groovy.runtime.GStringImpl(v, s)
   println gstr // The quick brown fox
   v[0] = 'sly'
   s[1] = ' old '
   println gstr // with caching: The quick brown fox, before: The sly old fox
   ```
   Normally the input array isn't accessible, so perhaps not a problem.


----------------------------------------------------------------
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:
users@infra.apache.org