-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
internal/methods: add benchmarks #1
Comments
Hello @dolmen! Thanks for filing this issue. I must admit I haven't focused too much on the performance of those functions, since they're only invoked during middleware instantiation and not on the hot path (middleware invocation). Which of those methods do you think could be faster?
I'd be happy to add some benchmarks around them, but I'd like to know more about what you have in mind first. |
A benchmark is definitely irrelevant if those functions are not used beyond the middleware instantiation. My concerns were about the use of a map (via |
I'm now more concerned about the use of |
Fair enough. A
This is more delicate. The cardinality of |
After thinking a bit more about this, I'm still not convinced a change in this area of the code is worth it. I'm going to close this issue for now, but I'm happy to hear counterarguments. |
Functions in package internal/methods could be faster. But let's start by measuring performance: add benchmarks.
The text was updated successfully, but these errors were encountered: