minify
minify copied to clipboard
Use jump tables instead of switch statements
From https://github.com/tdewolff/parse/issues/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