Skip to content
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

generic dispatch: unroll apply for generic methods of up to 3 arguments #415

Merged
merged 1 commit into from Nov 25, 2019

Conversation

@vyzo
Copy link
Owner

vyzo commented Nov 25, 2019

This unrolls the apply by specializing dispatch for generic methods of up to 3 arguments.
It results to a great speed up as there is no allocation for application any more.
The trivial (:ref vec 1) test, repeated 10M times, went from 1.88s to 0.25s in my laptop.

@vyzo vyzo merged commit 8aee602 into master Nov 25, 2019
3 checks passed
3 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
netlify/elastic-ritchie-8f47f9/deploy-preview Deploy preview ready!
Details
@vyzo vyzo deleted the generic-tuning branch Nov 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.