Re: groovy git commit: Increase the possible size of value in GString instance

2018-01-26 Thread MG
Hi Daniel, as far as I read Jochen's mail, it was not the rationale that was challenged per se, but the lack of expressing such in the form of a comment in the code... :-) Cheers, mg On 26.01.2018 01:21, Daniel Sun wrote: Hi Jochen, Let's have a look at some normal examples: `prin

Re: groovy git commit: Increase the possible size of value in GString instance

2018-01-25 Thread Daniel Sun
Hi Jochen, Let's have a look at some normal examples: `println "Hello, ${name}"` // length of "Jochen" is 6, length of "Daniel" is 6 too `println "Path: ${path}"` // the length of some file location is usually more than 8, e.g. D:\workspace\groovy ``` ${includedBody} // the leng

Re: groovy git commit: Increase the possible size of value in GString instance

2018-01-25 Thread Jochen Theodorou
On 25.01.2018 07:32, sun...@apache.org wrote: Repository: groovy Updated Branches: refs/heads/master 031fc238f -> 7be5f2f82 Increase the possible size of value in GString instance [...] -initialCapacity += values.length * Math.max(initialCapacity / strings.length, 1); +ini