Hacker News new | ask | show | jobs
by brildum 4099 days ago
Looks like its using a `sync.Pool` to amortize allocations.

https://github.com/labstack/echo/blob/master/echo.go#L17

1 comments

I noticed that, I didn't verify where it was used. It's smart, although it cheats the benchmark... kind of. =P

I'm always suspicious of usages of `sync.Pool`, it's easy to reuse things that aren't reset properly and end up with subtle coupling between requests.