Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Large content performance #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

philipn
Copy link

@philipn philipn commented Aug 25, 2014

Same as #10 but with some comments.

jkuczm and others added 2 commits September 14, 2013 18:26
Before this commit `utils.second_pass_render` tried to unpickle stashed
context from all bits of content resulting from splitting of template by
`PHASED_SECRET_DELIMITER`. Only odd bits are results of `phased` block
rendering, so only those bits contain stashed context. Even bits can't
contain stashed context and since they are results of first pass
rendering they can be arbitrary long and even for content of sane length
searching for regular expression match done in `unpickle_context` can
take insanely long time.  

Fixed by unpickling context only from odd bits.

Fixes: codysoyland#9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants