• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tomerfiliba / plumbum / 26735429103
88%

Build:
DEFAULT BRANCH: master
Ran 01 Jun 2026 04:38AM UTC
Jobs 0
Files 0
Run time –
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
26735429103

push

github

web-flow
fix: O(n^2) performance in StdinDataRedirection.popen (#798)

* fix: write stdin data in one call instead of O(n^2) chunked loop

StdinDataRedirection.popen wrote data to a TemporaryFile in 16 KB
chunks using `data = data[CHUNK_SIZE:]`. Each slice copies the entire
remaining buffer, making the total work O(n^2). For a 242 MB input,
this means ~1.8 TB of memory copies and takes hours.

Replace the loop with a single `f.write(data)` call.
TemporaryFile.write() handles arbitrarily large data, and the data
is already fully materialized in memory, so chunking served no
purpose.

Fixes #797

* fix: remove used CHUNK_SIZE

Signed-off-by: Henry Schreiner <henryfs@princeton.edu>

---------

Signed-off-by: Henry Schreiner <henryfs@princeton.edu>
Co-authored-by: Henry Schreiner <henryfs@princeton.edu>
Source Files on build 26735429103
Detailed source file information is not available for this build.
  • Back to Repo
  • dfdfacec on github
  • Prev Build on master (#24689376918)
  • Next Build on master (#26735487827)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc