[stringtemplate-interest] String template (java) Method caching
Terence Parr
parrt at cs.usfca.edu
Tue Jun 23 10:53:18 PDT 2009
On Jun 23, 2009, at 10:08 AM, Graham Brooks wrote:
> All,
>
> I have been digging around in the StringTemplate source from Git Hub
> and noticed that on /main there was some commented out code to cache
> the Method object. Un-commenting this code delivered an appreciable
> uplift in performance but I wondered why the code was commented out.
> We have only just started testing so thought we might not have hit
> any issues that others have seen with this code.
Howdy...I remember doing some very unscientific speed test a few years
ago in deciding that the small bump the complexity of caching. I
wondered about this the other day, actually. How could it not help a
lot? In practice, all of that reflection must be expensive.
So, how much speed increase did you get an what can you tell us about
the nature of your problem?
> Given that this is a valid approach I then went on to use FastMethod
> from cdlib and saw a further uplift in performance for our
> application.
I'm not familiar with that. can you tell me more about it?
Ter
More information about the stringtemplate-interest
mailing list