rollup-plugin-filesize icon indicating copy to clipboard operation
rollup-plugin-filesize copied to clipboard

[performance] makes build 1.5 times slower

Open stanf0rd opened this issue 4 years ago • 2 comments

Problem:

Enabling filesize plugin makes build 1.5 times slower

Filesize enabled:

filesize enabled

Filesize disabled:

filesize disabled

Versions:

MacOS 11.3.1
Node 14 LTS
Rollup v2.47.0
rollup-plugin-filesize v1.5.1

I could provide more additional info about my config, if you'll need

stanf0rd avatar May 22 '21 18:05 stanf0rd

it was obvious, but the reason is minifying and gzipping are needed to calculate minified and gzipped sizes :) And these operations are expensive.

I think, it would be great to put a disclaimer to the Readme about it.

stanf0rd avatar May 22 '21 19:05 stanf0rd

If you disable just the minifying it's significantly faster, gzip isn't really slow

Haroenv avatar Sep 02 '21 15:09 Haroenv