From: Sam Gross Date: Tue, 19 May 2026 21:36:31 +0000 (+0000) Subject: gh-150114: Reduce memory usage of test_free_threading.test_iteration (gh-150115) X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=61f12211fc40aef4a2dcccb9c94aae8108042edb;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Lib/test/test_free_threading/test_iteration.py b/Lib/test/test_free_threading/test_iteration.py index a51ad0cf83a0..44d3e9ccfdd1 100644 --- a/Lib/test/test_free_threading/test_iteration.py +++ b/Lib/test/test_free_threading/test_iteration.py @@ -12,7 +12,7 @@ if support.check_sanitizer(thread=True): NUMITEMS = 1000 NUMTHREADS = 2 else: - NUMITEMS = 100000 + NUMITEMS = 5000 NUMTHREADS = 5 NUMMUTATORS = 2