-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove fmt call in the session for each call #1680
Conversation
Do you think it makes sense instead of comparing profiling information, actually compare benchmarks output? And pls try using https://godoc.org/golang.org/x/tools/cmd/benchcmp for this |
Ok will try that. |
Thats a pretty minor change but it could contribute to other code performance improvement, where this function is used. However if you compare benchmarks for some MW this improvement might be "diluted" as this function could be a small fraction of lots of logic running under the MW's hood. So, for that kind of changes I would create dedicated benchmark to do more granular performance analysis - i.e. create benchmark for |
Using benchcmp on this branch(new) compared with master(old) - i've started expanding out the replacements to other places in the code where I can. |
Ok @dencoded thanks for the pointers - i'll do just that! |
Looks good! |
@joshblakeley can you also write |
👍 |
Fixes #1632
Running gateway headless with auth-key.
Before change:
After: