tricycle/lesswrong — pull request #16 by johnsoft (2012-06-13 19:31:09+00:00)
Title: Simplify HTML space compression (this fixes issue 304)

Fix for issue 304.

I replaced what looked to be over-engineered code with a naive but conservative regex. I did a quick unscientific test on one page, and even after sending it through gzip it's still a 10% improvement over no space removal, so it's probably worth the CPU.