minify icon indicating copy to clipboard operation
minify copied to clipboard

Use jump tables instead of switch statements

Open tdewolff opened this issue 4 years ago • 0 comments

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

tdewolff avatar May 11 '21 02:05 tdewolff