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

fredbi / uri / 6245655794 / 1
89%
master: 89%

Build:
DEFAULT BRANCH: master
Ran 20 Sep 2023 07:59AM UTC
Files 3
Run time 0s
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

20 Sep 2023 07:58AM UTC coverage: 98.324% (-0.08%) from 98.403%
6245655794.1

push

github

web-flow
perf: implemented profile-driven optimizations (#33)

* Added a test to capture profile (there is a build tag guard to avoid pulling dependencies)
* Enriched benchmarks to capture various payloads and compare with
`net/url.Parse()`
* Reduced memory allocations during parsing and validations (see below)

With these optimizations, `uri.Parse()` is only about 30% slower than `net/url.Parse()` (with go1.20).

* [x] reduced extraneous allocations spotted [in this WIP PR](https://github.com/fredbi/uri/pull/33)
* [x] gave up the convenience of using `strings.Split()` to get a zero-allocation iterator over segments
* [x] reduced the need to systematically call `url.PathUnescape()`: call
only when a % is detected
* [x] moved the internal pointer to `authorityInfo` to a plain struct: removes 1 extraneous allocation, simpler code

Signed-off-by: Frédéric BIDON <fredbi@yahoo.com>

704 of 716 relevant lines covered (98.32%)

395.78 hits per line

Source Files on job 6245655794.1
  • Tree
  • List 0
  • Changed 2
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 6245655794
  • afdc5c06 on github
  • Prev Job for on master (#6245427699.1)
  • Next Job for on master (#6246585469.1)
  • Delete
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