--- Perrin Harkins <[EMAIL PROTECTED]> wrote: > On 5/11/07, James. L <[EMAIL PROTECTED]> wrote: > > even if i am using an iterator object and call > it.next > > in TT, doesn't TT actually keep the rendered > template > > page into one variable and dump it to the browser? > in > > that case, the memory consumed is still equal to > the > > entire size of the data and iterator doesn't help > > here. am i right? > > You would end up with one copy of the data in memory > (in the rendered > template) instead of two if you use an iterator. If > it's a really > large amount of data, you could avoid creating a > giant template output > variable by breaking it up into multiple chunks and > sending them to > the client as you go. Template Toolkit may not be > the best tool for > this part of your application. >
thanks for confirming this. also, i found this post on TT mailing list that describes a way to flush TT content as soon as it gets generated. http://www.template-toolkit.org/pipermail/templates/2004-February/005776.html downside of it is that WRAPPER directive is broken in this case. but i don't use it in this app. > - Perrin > James. ____________________________________________________________________________________ Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games. http://sims.yahoo.com/