forked from apache/jena
-
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.
apacheGH-2738: Performance improvements to CacheSimple
Slight performance improvements to org.apache.jena.atlas.lib.cache.CacheSimple: - optimized bit-operations by using a cache size, that is always a power of 2 - removed already BiConsumer<K, V> dropHandler), which is used nowhere - added more tests for CacheSimple - fixed a small bug, where putting a key with the same hash as an existing one does not overridde the existing entry, when the values are equal. - added new module jena-benchmarks-shadedJena51 to be able to perform regression tests againt the previous release - added JHM test org.apache.jena.atlas.lib.cache.TestCaches in jena-benchmarks-jmh - added more detailed javadoc comments to Cache interface Downside: The fixed cache size must always be a power of 2. If the given size is already a power of two it will be used as fixed size for the cache, otherwise the next larger power of two will be used. (e. g. minimumSize = 10 results in 16 as fixed size for the cache)
- Loading branch information
Showing
8 changed files
with
730 additions
and
107 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
Oops, something went wrong.