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

Khan / aphrodite
100%
master: 0%

Build:
Build:
LAST BUILD BRANCH: clearer-error-message
DEFAULT BRANCH: master
Repo Added 10 Mar 2017 10:58PM UTC
Files 8
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

LAST BUILD ON BRANCH some-optimizations
branch: some-optimizations
CHANGE BRANCH
x
Reset
  • some-optimizations
  • Set
  • code-splitting
  • coverage
  • flow
  • flushtostyletag
  • hash-length-perf
  • jsdom
  • keyframes-test
  • mapobj
  • master
  • media-queries
  • optimize-generateCSSRuleset
  • rollup
  • server-test-minification
  • update-deps
  • v1.2.1
  • v1.2.2
  • v1.2.3
  • v1.2.4
  • v1.2.5
  • v2.0.0
  • v2.1.0
  • v2.1.1
  • v2.2.0
  • v2.2.1
  • v2.2.2
  • v2.2.3

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

Relevant lines Covered
Build:
Build:
248 RELEVANT LINES 248 COVERED LINES
43.01 HITS PER LINE
Source Files on some-optimizations
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
359 some-optimizations 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 th... push 23 Mar 2017 05:17PM UTC lencioni travis-ci pending completion  
See All Builds (187)
  • Repo 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

© 2025 Coveralls, Inc