B
Bob Rossi
Hi,
I see that I can initialize python for multi thread support by
calling PyEval_InitThreads().
I'm under the impression that when the GIL is turned on, python
can slow down a measurable amount.
Since I only need to use multiple threads for a portion of my
program, after I call PyEval_InitThreads() and use the threads,
is there a way to disable multi threading support in python?
(I noticed that _PyEval_FiniThreads was undocumented and
presumably shouldn't be called)
I would only want to do this if it would increase run time
performance in the main thread. So if that assumption is wrong,
please let me know.
Thanks,
Bob
I see that I can initialize python for multi thread support by
calling PyEval_InitThreads().
I'm under the impression that when the GIL is turned on, python
can slow down a measurable amount.
Since I only need to use multiple threads for a portion of my
program, after I call PyEval_InitThreads() and use the threads,
is there a way to disable multi threading support in python?
(I noticed that _PyEval_FiniThreads was undocumented and
presumably shouldn't be called)
I would only want to do this if it would increase run time
performance in the main thread. So if that assumption is wrong,
please let me know.
Thanks,
Bob