Skip to content

Commit

Permalink
Cache is shared
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjstewart committed Sep 17, 2021
1 parent 8d6ef73 commit 6e83eaa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,10 @@ def main(args: argparse.Namespace) -> None:
if args.cache:
if args.verbose:
print(landsat._cached_load_warp_file.cache_info())
print(cdl._cached_load_warp_file.cache_info())

# Clear cache for fair comparison between samplers
# Both `landsat` and `cdl` share the same cache
landsat._cached_load_warp_file.cache_clear()
cdl._cached_load_warp_file.cache_clear()

results_rows.append(
{
Expand Down

0 comments on commit 6e83eaa

Please sign in to comment.