On 30/11/19 2:59 pm, Rick Bonafied wrote:
> What does release the GIL mean?
GIL = Global Interpreter Lock. It's a lock that the Python
interpreter uses to protect its data structures, and it only
allows one thread in a process to execute Python code at a
time.
A well-written extension module will release the GIL while
it's doing something time-consuming that doesn't touch
Python objects, to give other threads a chance to run
Python code. I don't know whether Pillow does this, but
quite likely it does. Try doing the image loading in
another thread and see if it will run concurrently with
your timer.
--
Greg