]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-150114: Reduce memory usage of test_free_threading.test_iteration (gh-15011...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 19 May 2026 22:03:53 +0000 (00:03 +0200)
committerGitHub <noreply@github.com>
Tue, 19 May 2026 22:03:53 +0000 (22:03 +0000)
Reduce NUMITEMS from 100000 to 5000. Peak RSS for the full
test_free_threading suite drops from ~850 MB to ~175 MB.

(cherry picked from commit 61f12211fc40aef4a2dcccb9c94aae8108042edb)

Co-authored-by: Sam Gross <colesbury@gmail.com>
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