Closed cscott closed 8 years ago
Caching the typeof value in a local variable defeats the typeof x === <constant string> peephole optimization, and slows down es6-shim on the doxbee benchmark (on my machine, 20000 iterations) from 5870ms (with this patch) to 6062ms (without it).
typeof x === <constant string>
es6-shim
lulz @ js engine optimization
Caching the typeof value in a local variable defeats the
typeof x === <constant string>
peephole optimization, and slows downes6-shim
on the doxbee benchmark (on my machine, 20000 iterations) from 5870ms (with this patch) to 6062ms (without it).