Fixed
Details
Assignee
Pothys - MitrahSoftPothys - MitrahSoftReporter
Zac SpitzerZac SpitzerLabels
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Fix versions
Priority
New
Details
Details
Assignee
Pothys - MitrahSoft
Pothys - MitrahSoftReporter
Zac Spitzer
Zac SpitzerLabels
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Fix versions
Priority
Created 27 February 2024 at 06:16
Updated 19 May 2024 at 09:30
Resolved 3 May 2024 at 13:35
there are two potential improvements we can make to improve this implementation
https://github.com/lucee/Lucee/blob/6.1/core/src/main/java/lucee/runtime/functions/list/ArrayToList.java#L39
it's common to use an array to buffer output then do
arrayToList(arr,"")
currently there is no short path for this operation, there is a short path for a single character delimiter. A short path in this case would reduce the size of the string buffer by half (no need to append an empty delimiter)We know the size of the final string buffer, so we could use
sb.ensureCapacity( len * 2 )
to pre-size the string buffer