Skip to content

Commit

Permalink
Merge pull request #2226 from siliconcompiler/cache-dist
Browse files Browse the repository at this point in the history
add cache of dist information
  • Loading branch information
gadfort committed Mar 8, 2024
2 parents 88d76be + 11c9d34 commit 1765b74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions siliconcompiler/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from siliconcompiler.utils import default_cache_dir
import json
from importlib.metadata import distributions, distribution
import functools


def path(chip, package):
Expand Down Expand Up @@ -236,6 +237,7 @@ def register_python_data_source(chip,
ref=ref)


@functools.lru_cache(maxsize=1)
def __get_python_module_mapping():
mapping = {}

Expand Down

0 comments on commit 1765b74

Please sign in to comment.