anton-rs / cannon-rs

An alternative implementation of the OP Stack's Cannon, a MIPS emulator for the EVM.
MIT License
59 stars 6 forks source link

🧑‍🔬 experiment: Precompute zero'd `Page` cache #26

Closed clabby closed 12 months ago

clabby commented 12 months ago

Overview

Experiment for adding a precomputed cache for zero'd out pages when they're allocated.

clabby commented 12 months ago

This yielded subpar results, probably due to the overhead of having to invalidate part of the tree upon allocation. In the few benchmarks I did, we get a somewhat frequent drag towards the lower end, but it's not consistent across 5-6 runs.

Blue = w/ default cache, red = w/o default cache

Screenshot 2023-09-26 at 10 03 19 PM