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

fix: blockchash for devnet-0 #1427

Merged
merged 2 commits into from
May 16, 2024
Merged

fix: blockchash for devnet-0 #1427

merged 2 commits into from
May 16, 2024

Conversation

rakita
Copy link
Member

@rakita rakita commented May 16, 2024

move code to the Context::block_hash and dont warm load storage if it is more than 256 blocks.

@rakita rakita requested a review from DaniPopes May 16, 2024 15:31
Copy link
Contributor

Valgrind Results:

==3873== Cachegrind, a cache and branch-prediction profiler
==3873== Copyright (C) 2002-2017, and GNU GPL'd, by Nicholas Nethercote et al.
==3873== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info
==3873== Command: target/release/snailtracer
==3873== 
--3873-- warning: L3 cache found, using its data for the LL simulation.
Running snailtracer example!
elapsed: 1.810012483s
==3873== 
==3873== I   refs:      429,369,652
==3873== I1  misses:          3,131
==3873== LLi misses:          2,794
==3873== I1  miss rate:        0.00%
==3873== LLi miss rate:        0.00%
==3873== 
==3873== D   refs:      206,204,460  (133,650,197 rd   + 72,554,263 wr)
==3873== D1  misses:        344,590  (    204,509 rd   +    140,081 wr)
==3873== LLd misses:        137,635  (      4,273 rd   +    133,362 wr)
==3873== D1  miss rate:         0.2% (        0.2%     +        0.2%  )
==3873== LLd miss rate:         0.1% (        0.0%     +        0.2%  )
==3873== 
==3873== LL refs:           347,721  (    207,640 rd   +    140,081 wr)
==3873== LL misses:         140,429  (      7,067 rd   +    133,362 wr)
==3873== LL miss rate:          0.0% (        0.0%     +        0.2%  )

@rakita rakita merged commit 7046d5e into main May 16, 2024
25 checks passed
This was referenced May 16, 2024
@github-actions github-actions bot mentioned this pull request May 24, 2024
This was referenced Jun 3, 2024
@rakita rakita deleted the rakita/blockchash_fix branch June 10, 2024 16:55
This was referenced Jun 11, 2024
@github-actions github-actions bot mentioned this pull request Jun 19, 2024
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.

None yet

2 participants