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

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

Build:
Build:
LAST BUILD BRANCH: 5.0
DEFAULT BRANCH: master
Ran 27 Oct 2017 08:58PM UTC
Jobs 5
Files 74
Run time 4min
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
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

Jobs
ID Job ID Ran Files Coverage
1 68.1 27 Oct 2017 08:58PM UTC 0
99.89
Travis Job 68.1
2 68.2 27 Oct 2017 09:02PM UTC 0
99.89
Travis Job 68.2
3 68.3 27 Oct 2017 08:58PM UTC 0
100.0
Travis Job 68.3
4 68.4 27 Oct 2017 08:58PM UTC 0
100.0
Travis Job 68.4
5 68.5 27 Oct 2017 08:59PM UTC 0
100.0
Travis Job 68.5
Source Files on build 68
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #68
  • 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