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

eriknw / toolz / 35
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: python3.6
DEFAULT BRANCH: master
Ran 10 Nov 2013 06:43PM UTC
Jobs 4
Files 10
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
35

push

travis-ci

eriknw
`get` is faster for list of indices with no default

PR #57 put an emphasis on the performance of `get` because it is
so frequently used.  Some timings for `get` were given in that thread.
This commit improves those benchmarks as follows:

"test list" is 50% faster (using a two-element list of indices).
"test long list" is 100% faster (using a 100-element list of indices).

This is achieved because `operator.itemgetter(*ind)(seq)` is significantly
faster than `tuple(seq[i] for i in ind)`.  For me, it is 3x faster.

355 of 355 relevant lines covered (100.0%)

4.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 35.1 10 Nov 2013 06:43PM UTC 0
100.0
Travis Job 35.1
2 35.2 10 Nov 2013 06:43PM UTC 0
100.0
Travis Job 35.2
3 35.3 10 Nov 2013 06:43PM UTC 0
100.0
Travis Job 35.3
4 35.4 10 Nov 2013 06:43PM UTC 0
100.0
Travis Job 35.4
Source Files on build 35
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #35
  • 7c198ac9 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