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

Improve performance: load-grunt-config is twice slower than plain gruntfile.js #173

Open
themenow opened this issue Mar 19, 2018 · 0 comments

Comments

@themenow
Copy link

themenow commented Mar 19, 2018

I compared two configurations by running a single task "grunt clean"

Time for loading tasks:

plain gruntfile with jit-grunt - 852ms
separated config files with load-grunt-config and jitGrunt - 1.9s

At first, I thought jitGrunt didn't work, that turned out was wrong, debugging showed it did work.

However, comparing before and after using load-grunt-config to split the gruntfile.js, the performance impact is significant by double the loading time.

It may not noticeable on a powerful computer, for example, if the loading time before is 50ms, increasing to 100ms isn't a big deal. But on my computer, this adds 1 second on each task running, and sum up to additional 15+ seconds for my "build" task which has 10+ steps.

@themenow themenow changed the title jitGrunt not working Improve performance: load-grunt-config is twice slower than plain gruntfile.js Mar 19, 2018
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

1 participant