Skip to content

Commit

Permalink
remove ohc cache library from the simulator as no longer maintained
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Manes authored and Ben Manes committed Nov 26, 2023
1 parent 57851e2 commit 79a3815
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 150 deletions.
1 change: 1 addition & 0 deletions gradle/config/spotbugs/exclude.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
ACEM_ABSTRACT_CLASS_EMPTY_METHODS,
AI_ANNOTATION_ISSUES_NEEDS_NULLABLE,
AOM_ABSTRACT_OVERRIDDEN_METHOD,
BAS_BLOATED_ASSIGNMENT_SCOPE,
BL_BURYING_LOGIC,
CE_CLASS_ENVY,
CFS_CONFUSING_FUNCTION_SEMANTICS,
Expand Down
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ commons-text = "1.11.0"
concurrentlinkedhashmap = "1.4.2"
config = "1.4.3"
coveralls = "2.12.2"
dependency-check = "9.0.0"
dependency-check = "9.0.1"
eclipse-collections = "12.0.0.M3"
ehcache3 = "3.10.8"
errorprone-core = "2.23.0"
Expand Down Expand Up @@ -81,7 +81,7 @@ slf4j = "2.0.9"
slf4j-test = "3.0.1"
snakeyaml = "2.2"
sonarqube = "4.4.1.3373"
spotbugs-contrib = "7.6.0"
spotbugs-contrib = "7.6.1"
spotbugs-core = "4.8.1"
spotbugs-plugin = "6.0.0-rc.2"
stream = "2.9.8"
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-rc-3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-rc-4-bin.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
Expand Down
1 change: 0 additions & 1 deletion simulator/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ dependencies {
implementation(project(":caffeine"))

implementation(libs.xz)
implementation(libs.ohc)
implementation(libs.ycsb) {
isTransitive = false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
import com.github.benmanes.caffeine.cache.simulator.policy.product.ExpiringMapPolicy;
import com.github.benmanes.caffeine.cache.simulator.policy.product.GuavaPolicy;
import com.github.benmanes.caffeine.cache.simulator.policy.product.HazelcastPolicy;
import com.github.benmanes.caffeine.cache.simulator.policy.product.OhcPolicy;
import com.github.benmanes.caffeine.cache.simulator.policy.product.TCachePolicy;
import com.github.benmanes.caffeine.cache.simulator.policy.sampled.SampledPolicy;
import com.github.benmanes.caffeine.cache.simulator.policy.sketch.WindowTinyLfuPolicy;
Expand Down Expand Up @@ -223,7 +222,6 @@ private void registerGreedyDual() {
private void registerProduct() {
register(GuavaPolicy.class, GuavaPolicy::new);
register(Cache2kPolicy.class, Cache2kPolicy::new);
registerMany(OhcPolicy.class, OhcPolicy::policies);
register(CaffeinePolicy.class, CaffeinePolicy::new);
register(Ehcache3Policy.class, Ehcache3Policy::new);
registerMany(TCachePolicy.class, TCachePolicy::policies);
Expand Down

This file was deleted.

8 changes: 0 additions & 8 deletions simulator/src/main/resources/reference.conf
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ caffeine.simulator {
adaptive.Cart,

# Caching products
product.OHC,
product.Guava,
product.TCache,
product.Cache2k,
Expand Down Expand Up @@ -451,13 +450,6 @@ caffeine.simulator {
policy = [ lru ]
}

ohc {
# Policies: Lru, W-TinyLfu
policy = [lru, w-tinylfu]
# The percentage for the EDEN space (admission window)
percent-eden = 0.20
}

tcache {
# Policies: Lru, Lfu
policy = [ lru, lfu ]
Expand Down

0 comments on commit 79a3815

Please sign in to comment.