New comments about the last patch:
- GIL is not released for adler() or crc32() whereas these functions
may be slow for long strings: just add Py_BEGIN_ALLOW_THREADS /
Py_END_ALLOW_THREADS before / after adler(...) and crc32(...)
- (As ENTER_HASHLIB, issue #4751) I think that
Py_BEGIN_ALLOW_THREADS / Py_END_ALLOW_THREADS are useless in
ENTER_ZLIB
- You might add explicit self to ENTER/LEAVE_ZLIB because the macros
are now dependent of self (and not the whole module) =>
ENTER_ZLIB(self) and LEAVE_ZLIB(self)
Are deflateCopy() and inflateCopy() slow enough to release the GIL?