If V8 disambiguates keyword candidates from identifiers by keeping track of uppercase characters, would it make sense for minifies to prefer A-Z over a-z for identifiers?
-
-
-
Either use 1-char identifiers since all keywords are 2 or more chars, or identifiers that don't contain a keyword start or keyword continuation char. The simplest rule right now is one of A-Z, 0-9, $, _ as continuation char. A-Z as single char is probably the fastest :-)
- 3 more replies
New conversation -
-
-
Yeah! By the huge amount of modern-day javascript the parser and scanner cannot be fast enough
Great work @tverwaes and thx for all the fun. -
It was great having you! By now the (eager) parser is almost twice as fast as the bytecode compiler...
End of conversation
New conversation -
-
-
One-day, even people have not open the brower, The V8 is already run complete.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Regarding script streaming , What about gzipped js ? Can the parser start parsing the js before the buffering completes ?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
The cornerstone of parser performance is a fast scanner.