bsc
bsc copied to clipboard
feat: support cache among blocks
Description
support a flatten cache which have the some cache function of difflayer and it is maintained among blocks. It stores the account and storage data with the newest version among blocks and help save the cache cost of difflayer. The new cache used fastcache and the hit rate of new cache is little better then difflayer , If new cache miss , the bloomfilter in the difflayer will stop iterative query and enters the layer3 cache directly in most cases.
Rationale
execution performance raise 4% without shared pool, but its optimization effect has some overlap with the storage pool
yellow one is the performace with cache among blocks,
Example
add an example CLI or API response...
Changes
Notable changes:
- add each change in a bullet point here
- ...