2 ms·
Wasn't there an embedded JS implementation where whitespace slowed down code execution?
by TazeTSchnitzel 9y ago
Wasn't there an embedded JS implementation where whitespace slowed down code execution?
- twiss 9y agoThere was also this: https://news.ycombinator.com/item?id=12119080 https://news.ycombinator.com/item?id=12119080 ("Tabs slower than spaces in Firefox")
- bmcooley 9y agoA few years ago I was playing around with arduino, and adding comments increased the executable file size.
- rjeli 9y agov8 used the string length of a function, including comments, to determine whether to inline. HotSpot used (uses?) bytecode length of a method, so adding useless lines would affect performance.
- TazeTSchnitzel 9y agoI'm aware of V8, but what I'm thinking of was something worse: JS for embedded devices that apparently interpreted the code on-device without even compiling to bytecode.