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

gimli-rs / gimli / 17785491480
55%

Build:
DEFAULT BRANCH: master
Ran 17 Sep 2025 03:12AM UTC
Jobs 1
Files 50
Run time 1min
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

17 Sep 2025 03:11AM UTC coverage: 57.213% (+0.01%) from 57.202%
17785491480

push

github

web-flow
Optimize unsigned LEB128 reading (#795)

Micro-optimize unsigned LEB128 reading by unrolling parts of the first
loop to improve code gen for the statistically likely case of single
byte values. This improves performance by a small amount as per my
experimentation:

Before:
  test bench_parsing_debug_info            ... bench:  1,854,730.00 ns/iter (+/- 2,237.98)
  test bench_reading_leb128_unsigned_small ... bench:        649.41 ns/iter (+/- 3.82)
  test bench_reading_leb128_unsigned_large ... bench:        203.58 ns/iter (+/- 1.51)

After:
  test bench_parsing_debug_info            ... bench:  1,809,890.00 ns/iter (+/- 2,453.82)
  test bench_reading_leb128_unsigned_small ... bench:        607.84 ns/iter (+/- 0.63)
  test bench_reading_leb128_unsigned_large ... bench:        198.43 ns/iter (+/- 0.20)

Adjust u16 in a way to make the first check symmetrical, though this
change does not appear to have any measurable performance impact. Also
add a test for a LEB128 encoded value that we want to make sure we don't
regress on by treating parsing differently.

Signed-off-by: Daniel Müller <deso@posteo.net>

7 of 7 new or added lines in 1 file covered. (100.0%)

6651 of 11625 relevant lines covered (57.21%)

1.48 hits per line

Jobs
ID Job ID Ran Files Coverage
1 17785491480.1 17 Sep 2025 03:12AM UTC 50
57.21
GitHub Action Run
Source Files on build 17785491480
  • Tree
  • List 50
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 6e090aed on github
  • Prev Build on master (#17755966258)
  • Next Build on master (#17785530785)
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