On Mar 27, 5:48 am, "G.Boutsioukis" <gboutsiou...@gmail.com> wrote:
> Hi, I'm thinking about submitting a proposal for template compilation
> and I'm posting this as a request for more info.
>
> In particular, I remember this project being discussed last year and I
> pretty much assumed that Alex Gaynor's proposal would have been
> accepted(I see he's listed as a mentor this year BTW). What was the
> rationale behind the decision to reject it? Unless, of course, it was
> made on his part.
>
> In any case, any other comment around compatibility, speed or other
> concerns would also be helpful.

In the other concerns department: for many workloads template
compilation itself won't be that big of a benefit. There is a
relatively big speed bottleneck in L10N related stuff. If you are
rendering a big table of integers, if I recall correctly about 30-40%
of time is used in localizing the representation of those integers. If
you are rendering floats it will be more, and if dates/datetimes it
will probably be 90%+. So, it would be important to see how to reduce
the impact of L10N when trying to make template rendering faster.

The L10N rendering was made faster in tickets #14290 and #14306. There
is some low-hanging fruit in #14297 which never got applied.

I don't mean to say that this is a reason not to implement template
compilation, just to say that for some workloads the gain of template
compilation is not going to be _that_ big. And in the case of integer
rendering, it would be reasonable to still expect a speedup of nearly
50%.

 - Anssi

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

Reply via email to