clarkio / vscode-twitch-highlighter

This is a VS Code extension that will allow your Twitch chat to highlight a line of code via a command message. Example: `!line 8 server.js`. See master branch README.md for more details
https://clarkio.com
203 stars 14 forks source link

If Statement vs Switch better for performance #19

Open RamblingGeekUK opened 5 years ago

RamblingGeekUK commented 5 years ago

Investigate If Statement vs Switch better for performancee

https://stackoverflow.com/questions/94305/what-is-quicker-switch-on-string-or-elseif-on-type

clarkio commented 5 years ago

@reillydom from Twitch chat, also mentioned doing performance testing based on the specific application because it's a case by case basis on which is the better performing approach.