Skip to content

Commit

Permalink
Limited cache size
Browse files Browse the repository at this point in the history
  • Loading branch information
AryazE committed Aug 26, 2024
1 parent 862ced7 commit c3a3e88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dynapyt/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import json
import sys
import os
from functools import cache
from functools import lru_cache
from tempfile import gettempdir
from .utils.hooks import snake, get_name
from .instrument.IIDs import IIDs
Expand Down Expand Up @@ -88,7 +88,7 @@ def set_coverage(self, coverage_dir: str):
if self.coverage_path.exists():
self.coverage_path.unlink()

@cache
@lru_cache(maxsize=128)
def filtered(self, func, f, args):
docs = func.__doc__
if docs is None or START not in docs:
Expand Down Expand Up @@ -140,7 +140,7 @@ def filtered(self, func, f, args):
docs = docs[end + len(END) :].lstrip()
return return_value

@cache
@lru_cache(maxsize=128)
def analysis_func(self, analysis, f):
return getattr(analysis, f, None)

Expand Down

0 comments on commit c3a3e88

Please sign in to comment.