Also, I would like to know, if I understand this task correctly. Here is
how I see the implementation.
It will consist of the following pars:
- Test suite
- write templates for all types of template constructions:
- variables
- filters
- inherited templates
- method calls
- etc
- all combinations of them.
- write contexts for each of these templates
- Profiling
- run profiler (cProfile?) on all of these tests. As I see, basic
algorithm (pseudo code) will look like this:
for context, template in zip(contexts, templates):
t = Template(template)
c = Context(context)
start profiler
t.render(c)
stop profiler
store profiling results
- when I have all results, I'll have to analyse them and try to optimize
rendering.
Is it correct?
Thanks,
Oleksii
среда, 11 марта 2015 г., 17:52:55 UTC+1 пользователь Oleksii Oleksenko
написал:
>
> Hi,
>
> My name is Oleksii Oleksenko, I'm a master student in Distributed System
> Engineering at TU Dresden (Germany) and I want to participate in GSoC by
> contributing into your project. I decided to apply to Django because Python
> is my main and favorite programming language and I work mostly in the field
> of Web.
>
> Among all ideas, 'Template engine optimization' is most interesting for
> me. I have some questions regarding this task.
>
> 1. Do I have to consider only django.template or any other modules may
> influence template rendering too?
>
> 2. What should I use for profiling? Is any profiling library is common for
> django (like cProfile)? Or I can use anything I want?
>
> 3. Considering benchmark, is there any special cases (e.g. some parts of
> template language) that are known to be especially slow? Or is it my task
> to find them?
>
> Thanks,
> Oleksii
>
--
You received this message because you are subscribed to the Google Groups
"Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-developers/19d81aee-5390-4fc1-873a-c4684c97bb6a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.