Skip to content

StringBuilders#reusableBuilder(int expectedSize) #14

@jontejj

Description

@jontejj
  • 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions