petra icon indicating copy to clipboard operation
petra copied to clipboard

Performance of Switch Table vs Generic Switch if/else Statements

Open victorstewart opened this issue 6 years ago • 2 comments

have you tested how the performance of switch_table compares to a standard switch statement and/or if - else if - else statements?

debating whether it's is worth the effort of switching (no pun intended ;) lol ) over, and if so.. all the time or just sometimes.

victorstewart avatar Oct 11 '17 05:10 victorstewart

Hi Victor!

I'm going to work on benchmarks in this upcoming week... I'll update you when they are ready :)

jacquelinekay avatar Oct 29 '17 14:10 jacquelinekay

can't wait to see!

victorstewart avatar Nov 04 '17 17:11 victorstewart