-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Refactor] SegmentsStats#filesSizes from ImmutableOpenMap to java.uti…
…l.Map (#7094) Using an ImmutableOpenMap in filesSizes in o.o.index.engine.SegmentsStats is overkill since all we care about is public facing API not leaking the filesSizes collection. This commit refactors the SegmentsStats#filesSizes variable from an ImmutableOpenMap to an unmodifiable java.util.Map to remove all of the unnecessary temporary object copies on the internal map. It also refactors the internal only used FILE_DESCRIPTIONS static variable to an unmodifiable java.util.Map in order to completely remove SegmentsStats dependency on hppc based ImmutableOpenMap. Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
- Loading branch information
Showing
3 changed files
with
55 additions
and
72 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
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
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