forked from a16z/halmos
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- cache bytecode length - cache instruction access: this one is a memory-compute tradeoff, but I expect it to be favorable most of the time because program bytecode is small but accessed frequently. Can do a lru_cache if memory consumption turns out to be a problem - separate __getitem__ and .slice so that __getitem__ can be cached - return cached jump destinations instead of redecoding on the fly in jumpi_id All together, improve the runtime of some tests by about 5%
- Loading branch information
1 parent
59fa228
commit b3185b1
Showing
1 changed file
with
16 additions
and
22 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