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

brick / money / 309 / 3
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: Historical-currencies
DEFAULT BRANCH: master
Ran 04 Jul 2019 03:13PM UTC
Files 25
Run time 2s
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

04 Jul 2019 03:08PM UTC coverage: 100.0%. First build
309.3

push

travis-ci

BenMorel
Cache Money::formatTo()'s NumberFormatter for improved performance

Calling formatTo() many times spends quite some time in NumberFormatter constructor, that performs I/O, according to the profiler.
Because we usually call formatTo() many times in a row for the same locale, we can get a ~2x speedup with this fix.

The best way to tackle this in the future would be to deprecate the formatTo() method and introduce a MoneyFormatter object, that would keep a local cache of all locale/scale pairs.

428 of 428 relevant lines covered (100.0%)

31.37 hits per line

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