[stringtemplate-interest] caching property lookup (sync issue too)
Micheal J
open.zone at virgin.net
Sat Jul 15 03:07:37 PDT 2006
> On July 11 2006, Terence Parr wrote:
>
> Well, i just profiled ANTLR generating the thousands of lines
> of Java
> code for a C grammar. The reflection part took 120microseconds so
> about an 1/8 of 1ms. This is w/o the property caching. I have
> commented out for simplicity in the source and avoided a synch.
> problem at same time.
It might just be that your particular test case(s) do a minimal amount of
reflection. I imagine that ST-based web page generation is likely a heavier
user of reflection - in general - than source code generation. If only
because of the much-longer lifetime of ST group instances...
Just a thought.
Micheal
More information about the stringtemplate-interest
mailing list