[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Why with PyQt5, The GIL is only released when it is known to be needed ?
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2019-01-17 14:56:19
Message-ID: 3D072048-2086-4A4C-9B83-35F9F03C11BD () riverbankcomputing ! com
[Download RAW message or body]

On 17 Jan 2019, at 11:11 am, Baptiste de la gorce <guilbut.pyqt2@gmail.com> wrote:
> 
> Hello,
> I can read on the PyQt5 documentation that "The GIL is only released when it is \
> known to be needed. PyQt4 always released the GIL when calling Qt." Why this choice \
> to release the GIL less often withPyQt5 than with PyQt4?

To avoid the overhead of acquiring/releasing the GIL when it is not necessary.

> I'm developing a software with several threads (one for GUI, one with high CPU \
> usage, others for IO). I'm using PyQt4 and wish to switch to PyQt5, but am afraid \
> to have something less responsive.

Shouldn't make any difference.

Phil
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic