Skip to content
This repository has been archived by the owner on Sep 25, 2024. It is now read-only.

Recursively trawls a directory for .js files to uglify, running one node instance per available CPU.

License

Notifications You must be signed in to change notification settings

tweltner/parallel-uglifyjs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

parallel-uglifyjs

Hunts for js files in a directory tree, and runs uglify-js on them in parallel (one per CPU).

Easily modifiable to run any job in parallel (see worker.js).

On an 8-core machine a large test takes 2.5 hours utilising a single CPU, and 20 minutes with parallel-uglifyjs.

Installation

$ npm install parallel-uglifyjs

Usage

$ ./parallel_uglifyjs small_test

Help

I'm pretty sure the npm packaging is wrong. Please raise an issue, or fork and issue a pull request if you can critique.

Also on an Ubuntu 14.04 LTS machine (kernel version 3.13), the workers seem to get sent 10 or so jobs in a burst by master.js. I'm not sure why this is. Does the kernel limit the number of open file handles per process to something small?

About

Recursively trawls a directory for .js files to uglify, running one node instance per available CPU.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%