As in the original XML: CMPS: [Output: 67.37 Kb. compressed to 66.30 Kb. by saving 1.07 Kb. (1.59%)]
Index: [Output: 81.60 Kb. compressed to 79.29 Kb. by saving 2.31 Kb. (2.83%)]
Forumdisplay: [Output: 104.74 Kb. compressed to 98.30 Kb. by saving 6.44 Kb. (6.15%)]
And now with this added:
Code:
$output=preg_replace ('/<!-- .*? -->/',"",$output);
CMPS: [Output: 67.15 Kb. CMP 64.81 Kb. Net 2.35 Kb. (3.50%)]
Index: [Output: 81.83 Kb. CMP 76.14 Kb. Net 5.69 Kb. (6.95%)]
Forumdisplay: [Output: 99.72 Kb. CMP 90.69 Kb. Net 9.03 Kb. (9.05%)]
Stripping the comments works really, really well. No bugs at all in 3.5.3 with plenty of mods. One thing I wouldn't mind seeing added is something that keeps a running tally of the total compressed kB savings. It'd be great to know at the end of the month just how much this is saving me. Also being able to only display this to admins would be ultimate. I'd strip the output code altogther, but I'm way too much of a dork to go without it.
Quick math for
http://www.sevenstring.org
Average hits per day over the last week: 220880
Avg hits * 9.05k savings: 1998964
Average bandwith savings over 30 days: 1.90636 GB
Solid mod. Thanks much.
[high]* Club3G clicks install[/high]