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 #57

Closed
tdewolff opened this issue Feb 24, 2020 · 1 comment
Closed

Use jump tables instead of switch statements #57

tdewolff opened this issue Feb 24, 2020 · 1 comment

Comments

@tdewolff
Copy link
Owner

tdewolff commented Feb 24, 2020

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

@tdewolff
Copy link
Owner Author

Moved to tdewolff/minify#410

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

No branches or pull requests

1 participant