4 ms·
Looks like its using a `sync.Pool` to amortize allocations. https://github.com/labstack/echo/blob/master/echo.go#L17 https://github.com/labstack/echo/blob/mast
by brildum 12y ago
Looks like its using a `sync.Pool` to amortize allocations.
https://github.com/labstack/echo/blob/master/echo.go#L17 https://github.com/labstack/echo/blob/master/echo.go#L17
- AYBABTME 12y agoI 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.