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

Khan / aphrodite / 359 / 1
100%
master: 0%

Build:
Build:
LAST BUILD BRANCH: clearer-error-message
DEFAULT BRANCH: master
Ran 23 Mar 2017 05:17PM UTC
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

23 Mar 2017 05:15PM UTC coverage: 100.0%. First build
359.1

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%)

248 of 248 relevant lines covered (100.0%)

43.01 hits per line

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