Skip to content
This repository has been archived by the owner on Mar 23, 2022. It is now read-only.

Minifying in parallel #55

Open
andrey81inmd opened this issue Oct 22, 2012 · 2 comments
Open

Minifying in parallel #55

andrey81inmd opened this issue Oct 22, 2012 · 2 comments

Comments

@andrey81inmd
Copy link

It would be nice to have a feature to minify multiple files in parallel. If I have 200 js files to minify in a build, it takes a good several minutes. It should be possible to fork X number of processes to minify different files at the same time, so that the whole build would be done quicker.

Thanks,
Andrey

@jpaulo
Copy link

jpaulo commented Jun 18, 2013

Hey! I would like that too!

@oliver-brm
Copy link

We have some experience with forking a number of processes for minifying JavaScript files. In our case, we did that with Apache ant and Google's Closure compiler. That process was terribly slower compared to minifying the files in serial with Maven and YUI compressor plugin.

The reason is that the overhead of forking a process to minify a single file overweighs the advantage of doing things in parallel. If all processes were forked at the beginning, minified multiple files each and lived until all the work is done, that would be much faster I think.

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

No branches or pull requests

3 participants