-
Notifications
You must be signed in to change notification settings - Fork 52
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
Benchmark Reader and inline its requests. #347
Conversation
Am I reading this right that it gets worse with
But your first benchmark has
So it looks like things have worse, not better (from 310.2ns to 2.746μs) |
Also, I don’t think the |
(It occurs to me that we could benchmark them against each other directly by duplicating the constructors in separate modules or something, too; that’d be another tactic we could try.) |
Upon reflection, I’m pretty ok with |
Fixes #345.
Benchmark results follow:
With
-O1
Before any optimizations:
Adding
INLINE
everywhere:Changing those INLINEs to INLINABLEs:
With
-O2
With INLINE:
With INLINABLE: