Skip to content

v7.4.0

Latest

Choose a tag to compare

@bnkamalesh bnkamalesh released this 13 Nov 19:38
b3395df

Requires Go 1.26 or newer.

Route matching is much cheaper, and go test -race now passes (and runs in CI). The public API is unchanged.

Benchmarks against v7.3.0 (benchstat, 10 runs each)

case v7.3.0 v7.4.0
500 routes, last route 32.60µs, 1007 allocs 1.58µs, 5 allocs -95%
500 routes, no match 18.46µs 1.23µs -93%
10 routes, last route 924ns 284ns -69%
first route (any size) ~100ns ~100ns no change

ContextPayload is no longer pooled, so a goroutine that keeps webgo.Context(r) after the handler returns can't see another request's data. It costs one extra allocation per request (Router benchmark +3%).

What's Changed

  • [minor] Go 1.26, faster route matching, race-free tests by @bnkamalesh in #61

Full Changelog: v7.3.0...v7.4.0