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

From ~200ms to ~10s #76

Closed
JPeer264 opened this issue Sep 11, 2015 · 1 comment
Closed

From ~200ms to ~10s #76

JPeer264 opened this issue Sep 11, 2015 · 1 comment

Comments

@JPeer264
Copy link

Why is in my case concurrent slowing down the grunt tasks?
Compared

concurrent: {
    concatjs: ['concat:js', 'concat:app', 'concat:vendor']
}

to

grunt.registerTask('manage:js', [
    'concat:js',
    'concat:app',
    'concat:vendor',
]);

I have a much better performance with standard registration.
cmd

@sindresorhus
Copy link
Owner

Why is in my case concurrent slowing down the grunt tasks?

The task spawns child processes of grunt that runs concurrently. Spawning child processes generally comes with some overhead and launching grunt is very slow, especially on Windows and if you're not on a SSD harddrive. It's not a magic bullet and works best when you have heavy tasks with many files. In your case this task is overkill.

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