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

alphagov / backdrop / 2007 / 1
92%
master: 89%

Build:
Build:
LAST BUILD BRANCH: upgrade_paas_stack
DEFAULT BRANCH: master
Ran 11 Nov 2014 12:59PM UTC
Files 52
Run time 24s
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

11 Nov 2014 12:55PM UTC coverage: 91.637%. Remained the same
SKIP_VIRUS_SCAN=1 SKIP_SPLINTER_TESTS=1 MONGO_REPLICA_SET='' NO_AUTOPEP8=1

push

travis-ci

tombooth
Improve perf characteristics of filling gaps

Previously for every period and expected permutation of group_by key
value it would loop over all data points trying to find a match. This
led to num_periods * num_permutations * num_data_points iterations,
which will get very slow very fast. We will always need to go through
every period and permutation but removing the last multiple has big
change.

I switched this for pre-hashing the data points so that we can find a
match in O(1) rather than O(num_data_points). The reduced the time to
fill in gaps from 180s to 0.175s for the troublesome lpa journey query.

I have ensured that the output of this function is the same. The pickled
arguments and results are pulled out by wrapping
fill_group_by_permutations in a decorator that grabs *args and **kwargs
and the results and stores them in a file.

You can see the result of the profile by running:
	`nosetests --nocapture tests/perf/`

1797 of 1961 relevant lines covered (91.64%)

0.92 hits per line

Source Files on job 2007.1 (SKIP_VIRUS_SCAN=1 SKIP_SPLINTER_TESTS=1 MONGO_REPLICA_SET='' NO_AUTOPEP8=1)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 2007
  • Travis Job 2007.1
  • 88c3d25e on github
  • Prev Job for SKIP_VIRUS_SCAN=1 SKIP_SPLINTER_TESTS=1 MONGO_REPLICA_SET='' NO_AUTOPEP8=1 on fill-data-perf-improvments (#2005.1)
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