Skip to content

Commit

Permalink
chore: use std lib linkedlist for s3fifo, remove unused async_runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
arriqaaq committed Dec 21, 2023
1 parent ae009b0 commit 19721de
Show file tree
Hide file tree
Showing 11 changed files with 124 additions and 411 deletions.
51 changes: 51 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ rand = "0.8.5"
criterion = "0.5.1"
jemallocator = "0.5.4"
nanoid = "0.4.0"
caches = "0.2"

[[bench]]
name = "store_bench"
name = "s3fifo_bench"
harness = false
2 changes: 1 addition & 1 deletion benches/s3fifo_bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fn bench_s3fifo_cache(c: &mut Criterion) {
|(mut l, nums)| {
(0..cases).for_each(|v| {
let k = nums[v];
l.push(k, k);
l.insert(k, k);
});

(0..cases).for_each(|v| {
Expand Down
1 change: 0 additions & 1 deletion src/async_runtime/mod.rs

This file was deleted.

125 changes: 0 additions & 125 deletions src/async_runtime/spawning.rs

This file was deleted.

1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
pub mod async_runtime;
pub mod storage;
1 change: 0 additions & 1 deletion src/storage/cache/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
pub mod queue;
pub mod s3fifo;
Loading

0 comments on commit 19721de

Please sign in to comment.