Optimize RequestContext construction
|Reported by:||Owned by:||nobody|
|Cc:||lrekucki@…, FunkyBob||Triage Stage:||Accepted|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||yes||Patch needs improvement:||yes|
RequestContext constructor pushes a new context variable
onto the stack for each template processor result. This is not
necessary. This patch just updates the top dict entry of the
current context instead of pushing a new one onto the context dict stack.
This might break some apps that pop() template processor contexts after
they have been added, but that would be using an undocumented feature, and its
a bad idea: why add the contexts in the first place if they get removed afterwards.
Change History (9)
comment:3 Changed 6 years ago by
|Triage Stage:||Design decision needed → Accepted|