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

Prevent concurrent minify processing #45

Open
gunjanpatidar opened this issue Dec 27, 2012 · 1 comment
Open

Prevent concurrent minify processing #45

gunjanpatidar opened this issue Dec 27, 2012 · 1 comment

Comments

@gunjanpatidar
Copy link

We've been using minify in production for a while. Recently when a stylesheet is updated under high load many requests race to minify the stylesheet causing 100% CPU usage on all cores.

There's a similar issue at #266

but this seems to be missing in current releases

@glensc
Copy link
Collaborator

glensc commented Mar 18, 2014

indeed, i have experience similar problems, and it's especially worse if you use local java process to do minifying (yui or closure compiler), especially for css as it spawns minify process for each source in a group

https://github.com/mrclay/minify/blob/2.2.0/min/lib/Minify.php#L512

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