-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core/state/trie_prefetcher: mark the returned trie as unshared when p…
…ossible Trie's modification is more optimized when it's marked as unshared. When the prefetched trie is requested, the prefetcher is stopped and the caller can become the exclusive owner of the trie in most case. When the prefetcher is not copied (active prefetcher), when possible, the returned trie is marked as unshared. However, we need to be careful as there might be the case that 2 same storage trie are prefetched. In that case, don't mark the trie as unshared when returning to caller.
- Loading branch information
Showing
1 changed file
with
28 additions
and
6 deletions.
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