3 ms·
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
by m0ther 7y 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 :\