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

zopefoundation / zope.server / 68 / 2
100%
master: 99%

Build:
Build:
LAST BUILD BRANCH: 5.0
DEFAULT BRANCH: master
Ran 27 Oct 2017 09:02PM UTC
Files 74
Run time 3s
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

27 Oct 2017 08:54PM UTC coverage: 99.888%. First build
68.2

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)

4476 of 4481 relevant lines covered (99.89%)

1.0 hits per line

Source Files on job 68.2
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 68
  • Travis Job 68.2
  • 672787eb 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

© 2026 Coveralls, Inc