Hacker News new | ask | show | jobs
by m0ther 2548 days ago
re: switch to object literal.

Run a perf test comparing execution speed on the two strategies. I've had to defend switch like three times this year; there's a reason it exists, it's super easy for compilers to optimize :\