Community
Participate
Working Groups
The current version iterates over the entire string passed in, calling String.substring() twice each time through the loop. It can be optimized by just taking the first portion of the string, the ellipsis, and the last portion of the string.
Created attachment 60109 [details] Patch v1 Improves performance of Utils.shortenText().
Patch released to Head. Thanks.