Skip to content

CURATOR-494 Make ZKPaths.makePath() methods to allocate less garbage#295

Merged
asfgit merged 1 commit intoapache:masterfrom
leventov:ZKPaths-substring
Dec 11, 2018
Merged

CURATOR-494 Make ZKPaths.makePath() methods to allocate less garbage#295
asfgit merged 1 commit intoapache:masterfrom
leventov:ZKPaths-substring

Conversation

@leventov
Copy link
Copy Markdown
Member

Currently ZKPaths.makePath() methods call substring() unnecessarily. I've seen those methods responsible for 15% of total heap allocation in some application.

@Randgalt
Copy link
Copy Markdown
Member

Nice optimizations. Thank you. Once of us will review and merge shortly.

@asfgit asfgit merged commit 123a739 into apache:master Dec 11, 2018
@leventov leventov deleted the ZKPaths-substring branch December 11, 2018 15:25
@leventov
Copy link
Copy Markdown
Member Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants