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

moonbitlang / x / 808
87%

Build:
DEFAULT BRANCH: main
Ran 26 May 2026 03:22AM UTC
Jobs 1
Files 62
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

26 May 2026 03:21AM UTC coverage: 87.057%. Remained the same
808

push

github

peter-jerry-ye
perf(path): write StringView components via write_view instead of copying to_owned

UnixPath::Show::output and WinPath::Show::output wrote each
path component as logger.write_string(x.to_owned()) where x is a
StringView. to_owned() copies the view into a newly allocated String,
which write_string then copies again into the builder -- one
allocation + two copies per component, where Logger already exposes
write_view(StringView) doing the job in a single step.

Path::normalize(p) is UnixPath::parse(p.0).to_string(), so every
normalize goes through Show::output and pays the per-component copy.

path_normalize bench (native, 3-run median, 10-segment path with ..
and . x 200k iters):
  baseline: 282 ms
  patched : 209 ms  (-25.9%)

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

2334 of 2681 relevant lines covered (87.06%)

341.71 hits per line

Jobs
ID Job ID Ran Files Coverage
1 808.1 26 May 2026 03:22AM UTC 62
87.06
GitHub Action Run
Source Files on build 808
  • Tree
  • List 62
  • Changed 2
  • Source Changed 2
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 135d1415 on github
  • Prev Build on main (#806)
  • Next Build on main (#813)
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