darkdragn / lz4tools

LZ4Frame Bindings and tools for Python
90 stars 30 forks source link

releasing the GIL? #4

Open ThomasWaldmann opened 9 years ago

ThomasWaldmann commented 9 years ago

Can you say something about whether you release Python's GIL while the C compression/decompression/hashing code does its work? If you don't, do you think this would be possible?

It would be good for Python software that is multithreaded and wants to do stuff in parallel (like loading the next piece from disk or encrypting or ...).

See there about why I am asking:

https://github.com/thomaswaldmann/borg/tree/multithreading

darkdragn commented 9 years ago

Currently it doesn't release the GIL, however it wouldn't take much to allow it to. I'll try putting something together this weekend. Try checking back some time on Sunday or so and I'll try having the commit up. I would have it up sooner, but I'm taking on another CCNA R&S class tomorrow, and gearing up on taking IINS (640-554) to renew my CCNA.

On a side note, thanks for the spell check. I'm in the military and just kind of put this together while at a quick class in between commands and since I've been so busy at my new command as a CCNA instructor that I haven't even looked at this since last September or so.

byaka commented 8 years ago

Any news about this problem?