]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-150114: Reduce memory usage of test_free_threading.test_iteration (gh-150115)
authorSam Gross <colesbury@gmail.com>
Tue, 19 May 2026 21:36:31 +0000 (21:36 +0000)
committerGitHub <noreply@github.com>
Tue, 19 May 2026 21:36:31 +0000 (17:36 -0400)
Reduce NUMITEMS from 100000 to 5000. Peak RSS for the full
test_free_threading suite drops from ~850 MB to ~175 MB.

Lib/test/test_free_threading/test_iteration.py

index a51ad0cf83a0065453afca5634cf406b6023437f..44d3e9ccfdd14e018d059000325d032e36e63ce7 100644 (file)
@@ -12,7 +12,7 @@ if support.check_sanitizer(thread=True):
     NUMITEMS = 1000
     NUMTHREADS = 2
 else:
-    NUMITEMS = 100000
+    NUMITEMS = 5000
     NUMTHREADS = 5
 NUMMUTATORS = 2