Re: patches to avoid FastWriter creation
Alex Twisleton-Wykeham-Fiennes <[email protected]> Thu, 9 Mar 2006 12:55:57 +0000
| Newsgroups | gmane.comp.java.webmacro.user |
|---|---|
| Message-ID | <[email protected]> |
On Thu 9 March 2006 12:29, Alex Twisleton-Wykeham-Fiennes wrote: > All, > > here are the patched files to avoid unrequired FastWriter creation during > template evaluation. (there is another email to the list before this one that is stuck in the queue due to the attachments with the patches for the clean unloading of templates. However, the patches don't overlap each other so the order of application should not matter) > Changes:- > > - Template > added in a write(FastWriter,Context) method. This is already present in > the only implementing class (WMTemplate) so it has no affect other than > exposing the API to classes that evaluate against the interface. > > - IncludeDirective > - EvalDirective > Don't pre-cache the results of the sub-template parsing in a String but > instead get them to write directly out to the FastWriter that is passed > into the method. This avoids the creation of a FastWriter to handle the > template evaluation that is not required and which was taking up a load of > processing time. > > Alex ------------------------------------------------------- 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