FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-43785: Improve BZ2File performance by methane · Pull Request #25299 · python/cpython · GitHub

Repository navigation

bpo-43785: Improve BZ2File performance - #25299

Merged
methane merged 7 commits into
python:masterfrom
methane:bz2-performance
Apr 12, 2021
Merged

methane merged 7 commits into
python:masterfrom
methane:bz2-performance

Conversation

methane commented Apr 9, 2021 •
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Member

methane added 2 commits April 9, 2021 14:47
* Remove `RLock` from `BZ2File`. It makes `BZ2File` to thread unsafe, but
  gzip and lzma don't use it too.
* Added `BZ2File.__iter__()` method which delegate to
  `self._buffer.__iter__()`. It is much faster than calling
  `BZ2File.readline()` for each lines.
methane added the performance Performance or resource usage label Apr 9, 2021
gpshead self-requested a review April 11, 2021 21:03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance Performance or resource usage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL