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

Khan / aphrodite / 360
0%

Build:
DEFAULT BRANCH: master
Ran 23 Mar 2017 05:18PM UTC
Jobs 1
Files 8
Run time 552024min
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
360

Pull #233

travis-ci

web-flow
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.
Pull Request #233: Optimize css() some

108 of 108 branches covered (100.0%)

39 of 39 new or added lines in 2 files covered. (100.0%)

248 of 248 relevant lines covered (100.0%)

43.01 hits per line

Jobs
ID Job ID Ran Files Coverage
1 360.1 23 Mar 2017 05:18PM UTC 0
100.0
Travis Job 360.1
Source Files on build 360
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #360
  • Pull Request #233
  • PR Base - master (#358)
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