Skip to content

Commit

Permalink
Chunk cache reimplementation
Browse files Browse the repository at this point in the history
Adds `ar_chunk_cache` module.
`ar_mining_worker` module utilizes the new cache.
  • Loading branch information
shizzard committed Jan 29, 2025
1 parent 5085315 commit 75f6f18
Show file tree
Hide file tree
Showing 5 changed files with 633 additions and 226 deletions.
11 changes: 11 additions & 0 deletions apps/arweave/include/ar_chunk_cache.hrl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-record(ar_chunk_cache_group, {
chunk_cache = #{} :: #{term() => binary()},
chunk_cache_size_bytes = 0 :: non_neg_integer(),
reserved_chunk_cache_bytes = 0 :: non_neg_integer()
}).


-record(ar_chunk_cache, {
chunk_cache_groups = #{} :: #{term() => #ar_chunk_cache_group{}},
chunk_cache_limit_bytes = 0 :: non_neg_integer()
}).
Loading

0 comments on commit 75f6f18

Please sign in to comment.