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

Khan / aphrodite / 359
100%
master: 0%

Build:
Build:
LAST BUILD BRANCH: clearer-error-message
DEFAULT BRANCH: master
Ran 23 Mar 2017 05:17PM UTC
Jobs 1
Files 8
Run time 0s
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
359

push

travis-ci

lencioni
Optimize runStringHandlers

I noticed that we loop over every declaration in this method, seeing if
there is a stringHandler available for it. However, it is more likely
that there will be fewer stringHandlers than declarations, so we can
speed this up by inverting the loop and check here.

While I was at it, I decided to prevent this method from creating a new
OrderedElements object every time and instead to just mutate it. I
believe this will be safe and should buy us more performance. This means
we no longer need the .map method on this class.

This change reduces the time spent in runStringHandlers from 8.6% of
css() runtime to 0.26% and brings the runtime of my benchmark down from
2150ms to 1950ms.

108 of 108 branches covered (100.0%)

15 of 15 new or added lines in 1 file covered. (100.0%)

248 of 248 relevant lines covered (100.0%)

43.01 hits per line

Jobs
ID Job ID Ran Files Coverage
1 359.1 23 Mar 2017 05:17PM UTC 0
100.0
Travis Job 359.1
Source Files on build 359
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #359
  • 15d8c26c 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