-
Notifications
You must be signed in to change notification settings - Fork 450
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
[config change] use MessageCommitMode when executing future head block messages #2705
Merged
Merged
Changes from 15 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
910666f
add MessageRunMode to ProduceBlock parameters
magicxyyz 0513325
update geth pin
magicxyyz ed68053
remove outdated todo comments
magicxyyz 39e9481
fuzz state transition: skip malformed batch posting report
magicxyyz e4d4b97
fuzz state transition: test only existing message run modes
magicxyyz 760081d
make lint happy
magicxyyz bb2df4b
Merge branch 'master' into fix-run-mode
magicxyyz 04db8e1
Merge branch 'master' into fix-run-mode
magicxyyz 85a4fe2
Merge branch 'master' into fix-run-mode
magicxyyz 14d57e1
DisableStylusCacheMetricsCollection flag
diegoximenes 5e8c4a2
Stylus long term cache metrics
diegoximenes 02f1dc0
Rust lint
diegoximenes a478460
InitCache: add items found in LRU to long term cache (if long_term_ta…
magicxyyz ff947b0
Merge branch 'master' into fix-run-mode
magicxyyz b017c55
Merge branch 'stylus-lru-to-long-term' into fix-run-mode
magicxyyz d61710f
rustfmt InitCache.get
magicxyyz 328a386
update geth pin
magicxyyz 6d7ba9c
Merge branch 'master' into fix-run-mode
magicxyyz 989c099
Merge remote-tracking branch 'origin/stylus_cache_improvements' into …
magicxyyz da58307
system_tests: fix cache tag used when wrapping wasm database in test
magicxyyz 6c69a96
add stylus wasm long term cache test
magicxyyz 80c9318
system_test: use stylus long term cache only in specific tests
magicxyyz 4676459
fix tracing long term cache size when adding item from lru
magicxyyz 0ab06c8
add test for adding wasm from lru cache to long term cache
magicxyyz e702910
Merge branch 'master' into fix-run-mode
magicxyyz f65156d
don't clone cache item twice
magicxyyz d5f5f11
refactor wasm lru cache test
magicxyyz bb21220
Merge branch 'master' into fix-run-mode
magicxyyz 2a915ba
Merge branch 'master' into fix-run-mode
magicxyyz fe2233f
avoid unncessary cloning of cache item data
magicxyyz 67e09f3
system_tests: use wasmCacheTag when calling WrapDatabaseWithWasm
magicxyyz 6f7fd8e
Merge branch 'master' into fix-run-mode
magicxyyz b178d70
fix names of stylus cache metrics
magicxyyz c6619a5
fix build2ndNode
magicxyyz 495ade6
use fixed arbos tag in stylus_clear_long_term_cache as it's only for …
magicxyyz dca2484
program_test: add entry sizes sanity check
magicxyyz 737ffb1
program_test: add comment
magicxyyz 6396a77
count long term cache misses only when cache tag is 1
magicxyyz c99c24c
Merge branch 'master' into fix-run-mode
tsahee File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This codepath clones data twice: once here in the "get" and the other when returning item.data().
Cloning the entry_size_estimate_bytes is o.k., but we don't want to clone module and engine unnecessarily.
This is where rust gets you :)
There are probably some solutions that would avoid cloning result of the peek, but I think simplest would probably be if you can avoid cloning in item.data() because item itself is discarded right after.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tsahi pointed out that there's one more unnecessary clone, so that's not fixed yet, working on it :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
passed item.module and item.engine without cloning to the returned Option, let me know if that checks out :)