RNG-171: Reduce the memory footprint in cached boolean and int source
authorAlex Herbert <aherbert@apache.org>
Sun, 20 Mar 2022 20:51:36 +0000 (20:51 +0000)
committerAlex Herbert <aherbert@apache.org>
Sun, 20 Mar 2022 20:51:36 +0000 (20:51 +0000)
commitd16d614cf0340c99d339a3c652e125b048904594
tree6b821c598122c98f4e5b8df9e25998bbbaa1a78f
parentfa1c8d5258f99389e37409bbe27f81f239fc2b62
RNG-171: Reduce the memory footprint in cached boolean and int source

This change has a performance improvement on some JDKs.

Add a benchmark to compare the performance with and without the cache.
commons-rng-core/src/main/java/org/apache/commons/rng/core/source32/IntProvider.java
commons-rng-core/src/main/java/org/apache/commons/rng/core/source64/LongProvider.java
commons-rng-core/src/test/java/org/apache/commons/rng/core/JumpableProvidersParametricTest.java
commons-rng-core/src/test/java/org/apache/commons/rng/core/source64/LongProviderTest.java
commons-rng-examples/examples-jmh/src/main/java/org/apache/commons/rng/examples/jmh/core/CachedNextGenerationPerformance.java [new file with mode: 0644]
src/changes/changes.xml