Friday, July 6, 2012

Re: {% spaceless %} abuse (?)

On Fri, Jul 6, 2012 at 10:29 PM, Cal Leeming [Simplicity Media Ltd]
<cal.leeming@simplicitymedialtd.co.uk> wrote:
> -1 on removing spaceless.
>
> On pages where you have lots of rows in a loop, the amount of whitespace you
> end up with can massively increase page loading times.

You did read my comment about using GZip compression, right? GZip is
*really* good at compressing sequences of identical characters. I'd be
deeply surprised if the effect of introducing large blocks of
whitespace into a GZip compressed HTML stream was any more than a
rounding error. It should also be *much* more effective, and involve
less computational load, than the effect of running a regex over your
page to extract whitespace (which is all spaceless is doing).

Yours,
Russ Magee %-)

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment