pymgclient icon indicating copy to clipboard operation
pymgclient copied to clipboard

Release the GIL when dealing with not Python related things

Open antaljanosbenjamin opened this issue 3 years ago • 1 comments

Without releasing the GIL while doing not Python related things (especially IO) using multiple threads can be inefficient. A possible workaround is using multiple processes, but then sharing data requires pickling/unpickling.

This issue is the result of a discussion on Memgraph's Discord server.

antaljanosbenjamin avatar Jul 04 '22 07:07 antaljanosbenjamin

That's a good description, thanks!

Kevin-Mc-Callister avatar Jul 04 '22 15:07 Kevin-Mc-Callister