The GitHub Actions job "Java CI" on commons-lang.git/LANG-1805 has succeeded.
Run started by GitHub user jher235 (triggered by garydgregory).

Head commit for run:
6f62ba97223837005e4e5ea5bcf2df4640e71127 / jher235 <[email protected]>
[LANG-1805] Optimize StringBuilder usage in join() for primitives

- Refactor `join` methods for primitive types (char, byte, short, int, long, 
float, double) to improve performance.
- Pre-allocate `StringBuilder` capacity based on the actual number of elements 
(`noOfItems`) instead of the default 16 chars or `array.length`.
- Fix inaccurate capacity calculation in existing methods (char, byte, short) 
that incorrectly used `array.length`, causing memory waste for sub-arrays.
- Eliminate the final `substring()` call by appending delimiters conditionally 
within the loop, reducing unnecessary String object allocation.

Signed-off-by: jher235 <[email protected]>

Report URL: https://github.com/apache/commons-lang/actions/runs/20312972542

With regards,
GitHub Actions via GitBox

Reply via email to