Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[performance] makes build 1.5 times slower #95

Open
stanf0rd opened this issue May 22, 2021 · 2 comments
Open

[performance] makes build 1.5 times slower #95

stanf0rd opened this issue May 22, 2021 · 2 comments

Comments

@stanf0rd
Copy link

stanf0rd commented May 22, 2021

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 stanf0rd changed the title Makes build 1.5 times slower [performance] makes build 1.5 times slower May 22, 2021
@stanf0rd
Copy link
Author

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.

@Haroenv
Copy link
Contributor

Haroenv commented Sep 2, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants