forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Save 2M of heap for large static constant map in CategorizationPartOf…
…SpeechDictionary (elastic#103302) For one, this cleans up the lazy-loading implementation to use a standard holder approach. More importantly, this moves the implementation to use a final immutable map instead of a HashMap which saves about 2M in heap (reduction from ~7M to ~5M) for this map.
- Loading branch information
1 parent
7d2fb63
commit e784083
Showing
1 changed file
with
44 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters