-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize copyPositions method in DictionaryBlock
DictionaryBlock.copyPositions is used heavily from the performance profiles captured in the production. Optimizing the method using putIfAbsent instead of contains/put/get pattern. Avoid additional boxing on one of the integers repeatedly. Using a primitive map from fastutil would have been better, but did not put lot of effort into it.
- Loading branch information
Arunachalam Thirupathi
committed
Dec 2, 2022
1 parent
1cb5fff
commit b12080e
Showing
2 changed files
with
10 additions
and
6 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