Oct 15, 2010 at 10:55 PM
Edited Oct 15, 2010 at 10:56 PM
I ran both StripWhitespace and Minifier in a few loop tests(just 100 iterations) a few times and was pretty surprise by the results!
My test script was one of the WebResource scripts(the one with WebForm_PostBackOptions as the first function). This script is 20.3k uncompressed.
StripWhitespace: Average time was 80ms, reducing the file size to
Minifier only removing whitespace: Average time was 7ms, reducing the file size to
Minifier with code minifying(not just whitespace): Average time was 7.3ms, reducing the file size to 10k
Is there any reason we're not using the Ajax Minifier over the built in one? It's clearly more performant from my own tests on my laptop. It also offers a ton of settings so it can be tweaked any which way. I think it may speed up initial start time
of the blog, too, because there won't be any need to compile all of the compile-flagged Regex statements.