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

moonbitlang / core / 8043
87%

Build:
DEFAULT BRANCH: main
Ran 09 Nov 2026 04:56AM UTC
Jobs 1
Files 687
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

09 Nov 2026 04:54AM UTC coverage: 88.514%. Remained the same
8043

push

github

bobzhang
perf(deque): use unchecked buffer access where the captured state bounds the index

Since #4742 and #4751, the iterators, `map`, `mapi`, `search` and
`extract_if` read from a `(buf, head, len)` captured together. The
deque invariant (`0 <= head < cap` and `len <= cap` whenever
`len > 0`) then bounds every index they compute,
`wrap_index(head + i, cap)` for `0 <= i < len`. That makes the
per-element bounds check redundant. Use package-local
`UninitializedArray::unsafe_get`/`unsafe_set` there, documenting the
proof at the accessors and at each non-obvious site.

`shuffle_in_place` could use them too (`0 <= j <= i < len`), but it
measured about 5% slower on JS, so it keeps checked access.

Add benchmarks for the touched paths on a wrapped buffer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

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

25376 of 28669 relevant lines covered (88.51%)

436381.5 hits per line

Jobs
ID Job ID Ran Files Coverage
1 8043.1 09 Nov 2026 04:56AM UTC 687
88.51
GitHub Action Run
Source Files on build 8043
  • Tree
  • List 687
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 2a990d2a on github
  • Prev Build on main (#8032)
  • Next Build on main (#8055)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc