Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LRU cache utility #1090

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

LRU cache utility #1090

wants to merge 1 commit into from

Conversation

chfast
Copy link
Member

@chfast chfast commented Dec 23, 2024

Adds generic single-threaded implementation of
the least recently used (LRU) cache.

This is to be used to cache the code and code analysis.

Copy link

codecov bot commented Dec 23, 2024

Codecov Report

Attention: Patch coverage is 72.96296% with 73 lines in your changes missing coverage. Please review.

Project coverage is 93.98%. Comparing base (81c9dda) to head (2938377).

Files with missing lines Patch % Lines
test/internal_benchmarks/lru_cache_bench.cpp 0.00% 70 Missing ⚠️
lib/evmone/lru_cache.hpp 93.93% 2 Missing ⚠️
test/unittests/lru_cache_test.cpp 99.40% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1090      +/-   ##
==========================================
- Coverage   94.31%   93.98%   -0.33%     
==========================================
  Files         159      162       +3     
  Lines       17221    17491     +270     
==========================================
+ Hits        16242    16439     +197     
- Misses        979     1052      +73     
Flag Coverage Δ
eof_execution_spec_tests 23.25% <0.00%> (-0.37%) ⬇️
ethereum_tests 26.22% <0.00%> (-0.41%) ⬇️
ethereum_tests_silkpre 18.62% <0.00%> (-0.33%) ⬇️
execution_spec_tests 20.63% <0.00%> (-0.33%) ⬇️
unittests 88.83% <73.50%> (-0.24%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
test/unittests/lru_cache_test.cpp 99.40% <99.40%> (ø)
lib/evmone/lru_cache.hpp 93.93% <93.93%> (ø)
test/internal_benchmarks/lru_cache_bench.cpp 0.00% <0.00%> (ø)

@chfast chfast force-pushed the lru_cache branch 7 times, most recently from 013084f to 738e0d7 Compare December 23, 2024 14:10
Adds generic single-threaded implementation of
the least recently used (LRU) cache.

This is to be used to cache the code and code analysis.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant