]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43785: Improve BZ2File performance by removing RLock (GH-25299)
authorInada Naoki <songofacandy@gmail.com>
Mon, 12 Apr 2021 05:46:53 +0000 (14:46 +0900)
committerGitHub <noreply@github.com>
Mon, 12 Apr 2021 05:46:53 +0000 (14:46 +0900)
commitcc2ffcdfd78df3a18edae60df81b2f1b044b1634
tree0b93072493e3767357def749f92241822be543c9
parent553ee2781a37ac9d2068da3e1325a780ca79e21e
bpo-43785: Improve BZ2File performance by removing RLock (GH-25299)

Remove `RLock` from `BZ2File`. It makes `BZ2File` to thread unsafe, but
gzip and lzma don't use it too.

Co-authored-by: Gregory P. Smith <greg@krypto.org>
Lib/bz2.py
Misc/NEWS.d/next/Library/2021-04-09-14-51-58.bpo-43785.1mM5xE.rst [new file with mode: 0644]