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/25 13:24:36 UTC

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

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


   @blackdrag this is the other alternative I alluded to in earlier comments. No change to `GString`, `GStringImpl` enhanced slightly with a flag that enables defensive copy in/out for the string and value arrays. We create GStrings in @CompileStatic code with that flag set. Caching is only enabled when that flag is set and values are simple immutables. This piggy-backs on the idea that @CS turns off "dynamic behaviors" even though mutating those arrays is a bit of a stretch of what constitutes dynamic behavior.


----------------------------------------------------------------
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