Skip to content

Commit 6547073

Browse files
committed
gh-152190: Revise comment about the empirical memory threshold
1 parent 7aea508 commit 6547073

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Lib/test/test_zipfile64.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,11 @@ def setUp(self):
100100
# It will contain enough copies of self.data to reach about 8 GiB.
101101
self.datacount = 8*1024**3 // len(self.data)
102102

103-
# memory usage should not exceed 10 MiB
103+
# Memory usage should not exceed 10 MiB during repacking.
104+
# This empirical threshold ensures that the internal processing
105+
# like signature scanning, compressed block end tracing, and
106+
# data copying are properly buffered without loading the entire
107+
# large file into memory.
104108
self.allowed_memory = 10*1024**2
105109

106110
def _write_large_file(self, fh):

0 commit comments

Comments
 (0)