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

xymostech / rs-tex / 19
92%

Build:
DEFAULT BRANCH: master
Ran 23 Apr 2019 07:50PM UTC
Jobs 1
Files 28
Run time 3s
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
19

push

travis-ci-com

xymostech
Add a shared reference to Kpaths to make tests fast

When I added support for using Kpathsea to find the font file for
cmr10.tfm, this ended up making tests really slow for a couple
reasons. Since kpathsea isn't thread-safe, I had to run the tests
single-threaded which slowed things down. Also, since initalizing
kpathsea is really slow, each of the tests took ~500ms, which caused
the entire test run to be ~20s. This was too slow for my tastes.

To fix this, I'm now adding a shared reference to a single Kpaths
instance, guarded by a mutex. This will allow the tests to be run
multi-threaded again since there is now some locking going on, and
we're only paying the cost of initializing kpathsea once instead of
hundreds of times. Now, the tests take ~600ms total!

2900 of 3150 relevant lines covered (92.06%)

1.24 hits per line

Jobs
ID Job ID Ran Files Coverage
3 19.3 23 Apr 2019 07:50PM UTC 0
92.06
Travis Job 19.3
Source Files on build 19
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #19
  • 71e57582 on github
  • Prev Build on master (#18)
  • Next Build on master (#20)
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