https://github.com/python/cpython/commit/61f12211fc40aef4a2dcccb9c94aae8108042edb
commit: 61f12211fc40aef4a2dcccb9c94aae8108042edb
branch: main
author: Sam Gross <[email protected]>
committer: colesbury <[email protected]>
date: 2026-05-19T17:36:31-04:00
summary:

gh-150114: Reduce memory usage of test_free_threading.test_iteration (gh-150115)

Reduce NUMITEMS from 100000 to 5000. Peak RSS for the full
test_free_threading suite drops from ~850 MB to ~175 MB.

files:
M Lib/test/test_free_threading/test_iteration.py

diff --git a/Lib/test/test_free_threading/test_iteration.py 
b/Lib/test/test_free_threading/test_iteration.py
index a51ad0cf83a006..44d3e9ccfdd14e 100644
--- a/Lib/test/test_free_threading/test_iteration.py
+++ b/Lib/test/test_free_threading/test_iteration.py
@@ -12,7 +12,7 @@
     NUMITEMS = 1000
     NUMTHREADS = 2
 else:
-    NUMITEMS = 100000
+    NUMITEMS = 5000
     NUMTHREADS = 5
 NUMMUTATORS = 2
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to