Use a power of 2 for LRU cache size

pull/1128/head
Nikhil 5 years ago
parent 8a99bc2032
commit b1dc618ec7
  1. 4
      mythril/analysis/solver.py

@ -17,8 +17,8 @@ import logging
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
# LRU cache works great when used in powers of 2
@lru_cache(maxsize=10000000) @lru_cache(maxsize=2 ** 23)
def get_model(constraints, minimize=(), maximize=(), enforce_execution_time=True): def get_model(constraints, minimize=(), maximize=(), enforce_execution_time=True):
""" """

Loading…
Cancel
Save