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.
Make some code on SharedBlobCacheService hot path more compact
Make some code here a little friendlier to inline on the very hot path by removing assertions and safety checks (that are redundant anyway). This doesn't matter massively now but the closer we move to directly accessing the mmap in the SharedBytes.IO the more we are hurt by any extra code/checks. Also, replace the evicted AtomicBoolean with a hand-crafted volatile + var handle solution to save some memory and indirection as we look into potentially making the cache more fine-grained.
- Loading branch information
1 parent
46c8193
commit ee7aff5
Showing
1 changed file
with
39 additions
and
20 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