3 ms·
I instrumented the code and using conditionals resulted in 2x the generation time per loop. These loops are executed only once so the VM doesn't have a chance t
by mrdoob2 12y ago
I instrumented the code and using conditionals resulted in 2x the generation time per loop. These loops are executed only once so the VM doesn't have a chance to optimise them.
- gavanwoolery 12y agoI've done similar in the past and can concur that it does have large performance benefits, at least in Chrome where I tested it.