|
|
|
|
|
by josteink
3355 days ago
|
|
Intuitively I would assume that for most codebases dead-code removal would have the biggest impact, especially when importing third-party libraries and only using portions of them. But from your comment I can see that rollup should be able to handle this too. Yet the data in the linked article seems to imply Google Closure compiler still can optimize the code 33% further. I find it hard to imagine that inlining functions can make that kind of difference. Is it the test which contains flawed data? Or is this just an area where it's hard to generalize results due to the varying characteristics of different code-bases? Anyone got an opinion? |
|
Compare this section of the rollup output:
To this from Closure compiler: On top of that I did a basic comparison of the number of times the 'function' keyword is present in each bundle: Whether this is from inlining or 'better' dead-code removal I can't really tell.