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

zopefoundation / zope.server
100%
master: 99%

Build:
Build:
LAST BUILD BRANCH: 5.0
DEFAULT BRANCH: master
Repo Added 26 Oct 2017 01:29PM UTC
Files 73
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

LAST BUILD ON BRANCH issue5
branch: issue5
CHANGE BRANCH
x
Reset
  • issue5
  • 100_coverage
  • 4.0.0
  • 4.0.1
  • 4.0.2
  • 5.0
  • CCjGM6D2qkc2rLXX
  • appveyor
  • config-with-pure-python
  • config-with-pure-python-template-58e05f0f
  • fix-pipetrigger
  • fix-pypy
  • fix-tests
  • fix-warnings
  • issue4
  • lint
  • master
  • modernize-python
  • py3
  • py37

pending completion
68

push

travis-ci

jamadden
Implement OverflowableBuffer in terms of SpooledTemporaryFile

Fixes #5

Even for small buffers (the 8192 that previously were guaranteed to be
kept in a simple string) this should be faster, depending on the
number of writes possibly. Previously the strbuf was built up with
concatenation: `buf = buf + data`. Now we go directly into BytesIO and
avoid the extra copying.

Microbenchmarks on Python 3.6:

In [1]: def append():
   ...:     buf = b''
   ...:     while len(buf) < 8192:
   ...:         buf += b'data' * 100
   ...:

In [4]: %timeit append()
10.9 µs ± 268 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)

In [8]: def bio():
   ...:     b = io.BytesIO()
   ...:     cnt = 0
   ...:     while cnt < 8192:
   ...:         cnt += b.write(b'data'*100)
   ...:

In [9]: bio()

In [10]: %timeit bio()
8.55 µs ± 282 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)

4481 of 4481 relevant lines covered (100.0%)

5.0 hits per line

Relevant lines Covered
Build:
Build:
4481 RELEVANT LINES 4481 COVERED LINES
5.0 HITS PER LINE
Source Files on issue5
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
68 issue5 Implement OverflowableBuffer in terms of SpooledTemporaryFile Fixes #5 Even for small buffers (the 8192 that previously were guaranteed to be kept in a simple string) this should be faster, depending on the number of writes possibly. Previously ... push 27 Oct 2017 08:58PM UTC jamadden travis-ci pending completion  
See All Builds (316)
  • Repo on GitHub
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

© 2025 Coveralls, Inc