[stringtemplate-interest] it's 60% of time in ObjectModelAdaptor.getProperty()

Terence Parr parrt at cs.usfca.edu
Sun Feb 6 11:03:40 PST 2011


Yep, so i can't really ever see compilation being useful for ST since i can't add static types.
Ter
On Feb 6, 2011, at 10:06 AM, Oliver Zeigermann wrote:

> You will never know without static type declarations.
> 
> 2011/2/6 Terence Parr <parrt at cs.usfca.edu>:
>> here's the issue: what's the type in the cast? we don't know it.
>> Ter
>> On Feb 6, 2011, at 7:23 AM, Johan Stuyts wrote:
>> 
>>>> Hi Johan, good idea.  Still though, w/o a type, it's still got to use
>>>> .invoke.  There is no interface that covers every field / method in all
>>>> possible incoming objects.
>>> 
>>> What if you included a cast in the generated bytecode? Then you can always
>>> invoke with type Object.



More information about the stringtemplate-interest mailing list