GitHub user leventov opened a pull request:
https://github.com/apache/curator/pull/295
CURATOR-494 Make ZKPaths.makePath() methods to allocate less garbage
Currently ZKPaths.makePath() methods call substring() unnecessarily. I've
seen those methods responsible for 15% of total heap allocation in some
application.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/leventov/curator ZKPaths-substring
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/curator/pull/295.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #295
----
commit 123a739f258d3d1c35e28454168a209936e51cde
Author: Roman Leventov <leventov.ru@...>
Date: 2018-12-10T18:37:52Z
Make ZKPaths.makePath() methods to allocate less garbage
----
---