Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(request): per-request allocation reduction (#65)
In the middleware handler: the very first init of `l zerolog.Logger` does not yet depend on the request's `c *gin.Context`. It need not be allocated at the start of every request, since all later `l` usage happens anyway only after a new instance is allocated by `l.With`.
- Loading branch information