issues
search
Softhouse
/
jargo
Argument and options parser for java
Other
17
stars
0
forks
source link
StringBuilders#reusableBuilder(int expectedSize)
#14
Open
jontejj
opened
11 years ago
jontejj
commented
11 years ago
This feature would greatly minimize the need to allocate/deallocate memory for large strings
Reusing StringBuilders using a ThreadLocal<List
> perhaps, or a ConcurrentSkipListMap?
Callers must free the StringBuilder when they're done.
Freed builders must be evicted from the cache after some time to avoid memory leaks