JSMin+ is another javascript minifier, but one with a more lenient license (MPL/GPL/LGPL tri-license):
http://crisp.tweakblogs.net/blog/cat/716

first patch included.

Comments

kiphaas7’s picture

StatusFileSize
new3.54 KB

Fixed typo in class_exists() call.

kiphaas7’s picture

StatusFileSize
new3.37 KB

Grrr, selected one file too many....

wim leers’s picture

Status: Needs review » Closed (won't fix)

As per #940342: Javascript Aggregator: Allowed memory size ... exhausted, that may not be such a great idea after all.

kiphaas7’s picture

Status: Closed (won't fix) » Postponed

Shouldn't it be "postponed" then? If the author of jsmin+ comes up with a viable fix, it could be committed after all...

wim leers’s picture

That's possible indeed :) You're right.

wim leers’s picture

Project: Support File Cache » BundleCache
momper’s picture

subscribe

dave reid’s picture

Note that the current jsmin.php included with the module shouldn't actually be in CVS since it's not licensed under the GPL...

kiphaas7’s picture

http://crisp.tweakblogs.net/blog/6861/jsmin+-version-14.html

Crisp (author of jsmin+)
so I decided to fix at least one other major problem that has been reported to me several times: the fact that JSMin+ was quite memory-intensive, especially when minifying large (eg combined) javascript files.

To fix that I moved part of the minification process to the JS parser itself where it can minify chunks of the parse tree which can be disposed after that. I made this change in such way that it is still possible to get a complete parse tree from the JS parser.

From a test I ran with the unminified source code of JQuery 1.6.2 memory usage went down from 40+MB to only around 8MB