uninitialize PyEval_InitThreads()
- From: Bob Rossi <bob@xxxxxxxxxx>
- Date: Mon, 25 Jun 2012 20:51:09 -0400
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
.
- Prev by Date: Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)
- Next by Date: Re: tiffany 0.6 released
- Previous by thread: Perl __DATA__ construct.
- Next by thread: Re: JOB
- Index(es):