Daniel Sun created GROOVY-9637:
----------------------------------
Summary: Improve the performance of GString
Key: GROOVY-9637
URL: https://issues.apache.org/jira/browse/GROOVY-9637
Project: Groovy
Issue Type: Improvement
Reporter: Daniel Sun
{{GString}} will runĀ {{toString()}} whenever its implementation needs its
literal string, but unfortunately {{toString()}} will be re-constructed for
each time and the process costs quite a little of time.
So I propose to check whether {{GString}} values are all of immutable type,
e.g. primitive types and their boxed type, {{String}}, etc. If yes, use the
cached literal string, otherwise re-constructe the literal string.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)