[stringtemplate-interest] need for null test
Terence Parr
parrt at cs.usfca.edu
Sat Jan 22 11:43:55 PST 2011
On Jan 18, 2011, at 1:35 AM, Oliver Flege wrote:
>
> The only thing I don't like is that notFalse.(value) will always be evaluated
> by the Interpreter, so it creates a MapModelAdaptor, a StringWriter etc.
> An language-supported null test would be a lot faster, I suppose.
>
It shouldn't create an adaptor; there is only one registered with each group. you can avoid creating the stringwriter by passing in the output stream. that is indeed much faster than buffering up the output and then printing out
Ter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20110122/0489ec1f/attachment.html
More information about the stringtemplate-interest
mailing list