Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Commit

Permalink
Discard global code_cache for now
Browse files Browse the repository at this point in the history
This change is experimental. Caching vm code forever in a single
dictionary can be really expensive. This has no direct connection
to #327 but touches the same loc's.
  • Loading branch information
konradkonrad committed Apr 29, 2016
1 parent 2d487d9 commit 4c93672
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ethereum/vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,10 @@ def peaceful_exit(cause, gas, data, **kargs):
log_vm_exit.trace('EXIT', cause=cause, **kargs)
return 1, gas, data

code_cache = {}


def vm_execute(ext, msg, code):
code_cache = {}

# precompute trace flag
# if we trace vm, we're in slow mode anyway
trace_vm = log_vm_op.is_active('trace')
Expand Down

0 comments on commit 4c93672

Please sign in to comment.