Skip to content

Commit

Permalink
Cache Benchmark Property
Browse files Browse the repository at this point in the history
  • Loading branch information
Sumit112192 committed Jul 30, 2024
1 parent 10c2d43 commit 8ffd426
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion benchmarks/benchmark_base.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import functools
from copy import deepcopy
from os.path import dirname, join, realpath
from pathlib import Path
Expand Down Expand Up @@ -67,7 +68,7 @@ def tardis_config_verysimple(self):
YAMLLoader,
)

@property
@functools.cached_property
def config_rpacket_tracking(self):
config = Configuration.from_yaml(
f"{self.example_configuration_dir}/tardis_configv1_verysimple.yml"
Expand Down

0 comments on commit 8ffd426

Please sign in to comment.