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

Use jump tables instead of switch statements #410

Open
tdewolff opened this issue May 11, 2021 · 0 comments
Open

Use jump tables instead of switch statements #410

tdewolff opened this issue May 11, 2021 · 0 comments

Comments

@tdewolff
Copy link
Owner

From tdewolff/parse#57

If possible, this would speed up the parsers.

See:
golang/go#5496
golang/go#19791 (comment)
golang/go#15780
https://www.nextmovesoftware.com/technology/SwitchOptimization.pdf

See https://quasilyte.dev/blog/post/go-asm-dispatch-tables/ for an implementation

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

1 participant