This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Add special tag to exclude runtime storage items from benchmarking #12205
Merged
paritytech-processbot
merged 72 commits into
master
from
cache-runtime-storage-items-macro
Sep 16, 2022
Merged
Changes from 49 commits
Commits
Show all changes
72 commits
Select commit
Hold shift + click to select a range
f08d3ae
initial setup
sam0x17 c381aef
add WhitelistedStorageKeys trait
sam0x17 1275c42
add (A, B) tuple implementation for whitelisted_storage_keys()
sam0x17 84beb0f
fix formatting
sam0x17 3699c19
implement WhitelistedStorageKeys for all tuple combinations
sam0x17 3056275
impl_for_tuples up to 128 for WhitelistedStorageKeys
sam0x17 adc7585
refactor to #[benchmarking(cached)]
sam0x17 f645511
tweak error message and mark BlockNumber as cached
sam0x17 1b8af15
add benchmarking(cached) to the other default types
sam0x17 2a1ae01
add docs for benchmarking(cached)
sam0x17 586bafb
properly parse storage type declaration
sam0x17 cfcd073
make storage_alias structs public so we can use them in this macro
sam0x17 8534891
use BTreeMap since TrackedStorageKey missing Ord outside of std
sam0x17 e2550b4
make WhitelistedStorageKeys accessible
sam0x17 157fb29
basic detection of benchmarking(cached) :boom:
sam0x17 5318167
proper parsing of #[benchmarking(cached)] from pallet parse macro
sam0x17 8cde8fe
store presence of #[benchmarking(cached)] macro on StorageDef
sam0x17 4cccd8a
compiling blank impl for WhitelistedStorageKeys
sam0x17 f21315c
move impl to expand_pallet_struct
sam0x17 faa63a7
use frame_support::sp_std::vec::Vec properly
sam0x17 73b01f1
successfully compiling with storage info loaded into a variable :boom:
sam0x17 fc6d239
plausible implementation for whitelisted_storage_keys()
sam0x17 f920bb9
use Pallet::whitelisted_storage_keys() instead of hard-coded list
sam0x17 0040a45
AllPallets::whitelisted_storage_keys() properly working :boom:
sam0x17 4a0fe7f
collect storage names
sam0x17 8ab6ab3
whitelisted_storage_keys() impl working :boom:
sam0x17 8ca026e
clean up
sam0x17 58a6229
fix compiler error
sam0x17 854a102
just one compiler error
sam0x17 771202c
fix doc compiler error
sam0x17 fe856ac
use better import path
sam0x17 0936ca4
fix comment
sam0x17 a72a280
whoops
sam0x17 c4ecb9a
whoops again
sam0x17 c6fd281
fix macro import issue
sam0x17 f360944
cargo fmt
sam0x17 92d5f5e
mark example as ignore
sam0x17 da51def
use keyword tokens instead of string parsing
sam0x17 e00420f
fix keyword-based parsing of benchmarking(cached)
sam0x17 a63acdf
preliminary spec for check_whitelist()
sam0x17 1a0ba3f
add additional test for benchmarking whitelist
sam0x17 d0ee2c6
add TODO note
sam0x17 2d1d637
remove irrelevant line from example
sam0x17 9ce39d2
use filter_map instead of filter and map
sam0x17 33828ea
simplify syntax
sam0x17 49b13ac
clean up
sam0x17 a2e8185
fix test
sam0x17 557a0c2
fix tests
sam0x17 d20bfe9
use keyword parsing instead of string parsing
sam0x17 1d31abe
use collect() instead of a for loop
sam0x17 dcb6312
fix compiler error
sam0x17 6e66eb1
clean up benchmarking(cached) marking code
sam0x17 dcda735
use cloned()
sam0x17 3f7bbc5
refactor to not use panic! and remove need for pub types in storage_a…
sam0x17 975f371
remove unneeded use
sam0x17 5ff3623
remove unneeded visibility changes
sam0x17 7214d0f
don't manually hard code hash for treasury account as hex
sam0x17 6e49069
proper Ord, PartialOrd, and Hash impls for TrackedStorageKey
sam0x17 4a71bd4
use BTreeSet instead of BTreeMap
sam0x17 7752321
fix comments
sam0x17 72a8ac8
cargo fmt
sam0x17 20e1375
switch to pallet::whitelist and re-do it basti's way :D
sam0x17 eb46fbb
make PartialOrd for TrackedStorageKey consistent with Ord
sam0x17 fd23e9e
more correct implementation of hash-related traits for TrackedStorageKey
sam0x17 d483a7a
fix integration test
sam0x17 05db4e5
update TODO
sam0x17 cb4ed97
remove unused keyword
sam0x17 4faf150
remove more unused keywords
sam0x17 91f33f0
use into_iter()
sam0x17 42127fc
Update frame/support/procedural/src/pallet/parse/mod.rs
sam0x17 cbf5959
add docs for whitelisted
sam0x17 ae1bf10
fix comment
sam0x17 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.