Re: Performance and custom tags w/buffers=True
"Jonathan Ellis" <[email protected]>
| Newsgroups | gmane.comp.python.spyce.general |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 6 Apr 2006 16:55:34 -0400, "Philip Semanchuk" <[email protected]> said: > Hi all, > I've been using Spyce in command line mode to generate reports. The > runtime suddenly ballooned and I tracked it down to a custom tag I had > written. Further experimentation showed that the tag behaved very > differently (performance-wise) depending on whether or not I set > buffers=True in the tag definition. I wrote a short page to illustrate > the problem: > Can anyone else (a) repeat these results and, better yet, (b) explain > what's going on? Well, the core buffer code is pretty much unchanged since 1.3, but compiling tags with buffering is relatively new. Rimon was something of a performance nazi, so my guess is it's the compiled code's fault, rather than the execution model, but it may be worth testing that assumption. In any case, you can see the difference in the generated code, both for your page and the tag, by running spyceCompile from the command line. (I don't think the page code will be any different, but I wouldn't place too much faith in my memory for that, either. :) -Jonathan -- C++ is history repeated as tragedy. Java is history repeated as farce. --Scott McKay ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642