Users of uglify-es, can you enlighten me what’s supposed to happen to `const`? `var` is obviously shorter so is there any reason it doesn’t compile down?
-
Show this thread
-
Replying to @dan_abramov
I don't think there is a difference on the gzipped size.
1 reply 0 retweets 3 likes -
Replying to @alippai
That was my thought but I think it still affects the parsed code size? Since that’s one of the most common statements
1 reply 0 retweets 0 likes -
Replying to @dan_abramov
Somebody on the
@v8js team may correct me, but the parse time grows by the AST size (e.g the node count and complexity) and not the raw byte size. Of course there are extreme cases, but it's like reading 1MB vs 1.1MB from the memory.3 replies 0 retweets 13 likes
Both AST size and binary size have an impact on parse time. When it comes to `const` vs. `var`: I wouldn’t worry about it.pic.twitter.com/8GaakhdrI1
1:54 PM - 13 Jan 2018
0 replies
0 retweets
3 likes
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.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.