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

Optimize memory accesses with function pointers instead of using match #2

Open
wheremyfoodat opened this issue Sep 29, 2020 · 1 comment

Comments

@wheremyfoodat
Copy link
Owner

wheremyfoodat commented Sep 29, 2020

Also: Check whether u16/u32::from_le_bytes is faster than my current solution

@wheremyfoodat wheremyfoodat changed the title Optimize memory accesses with function pointers Optimize memory accesses with function pointers instead of using match Sep 29, 2020
@Powerlated
Copy link

match likely already compiles down to a jump table, so the overhead of a function call might even decrease performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants