Multi threaded parallel interpolation #3709
Replies: 1 comment 1 reply
-
With standard Python, the Global Interpreter Lock (GIL) will keep multiple threads of code from running concurrently within the Python interpreter, so this won't help you see any reduction in runtime. You'd need to use something like multiprocessing to get that through the use of multiple interpreters. Starting with Python 3.13, there are now (experimental) builds of the Python interpreter available using "free-threading", which removes the GIL and permits multiple threads to run concurrently inside a single interpreter instance. Numpy is shipping wheels that support this build of Python, so in theory If you give it a try, we'd love to hear how it works (though can't offer any help in getting it working at this time). |
Beta Was this translation helpful? Give feedback.
-
can inverse_distance_to_grid use ThreadPoolExecutor to accelerate it?
Beta Was this translation helpful? Give feedback.
All reactions