File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1109,20 +1109,6 @@ def snp_calls(
11091109 chunks = chunks ,
11101110 )
11111111
1112- # Here we cache to improve performance for functions which
1113- # access SNP calls more than once. For example, this currently
1114- # happens during access of biallelic SNP calls, because a
1115- # first computation of allele counts is required, before
1116- # then using that to filter SNP calls.
1117- #
1118- # We only cache up to 2 items because otherwise we can see
1119- # high memory usage.
1120- #
1121- # N.B., the cache is created as a per-instance lru_cache in __init__
1122- # (self._cached_snp_calls = lru_cache(maxsize=2)(self._raw_snp_calls)).
1123- # Do NOT apply @lru_cache here: a class-level decorator stores `self` as a
1124- # cache key in a class-global dict, preventing garbage collection of stale
1125- # API instances and causing all their subcaches to leak.
11261112 def _raw_snp_calls (
11271113 self ,
11281114 * ,
You can’t perform that action at this time.
0 commit comments