From: Alex Twisleton-Wykeham-F. <al...@fi...> - 2006-03-09 12:28:53
|
All, here are the patched files to avoid unrequired FastWriter creation during template evaluation. 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 |