Skip to content

Commit 32f959c

Browse files
committed
Remove obsolete comments
1 parent 7329eb5 commit 32f959c

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

malariagen_data/anoph/snp_data.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff 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
*,

0 commit comments

Comments
 (0)