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

Terence Parr parrt at cs.usfca.edu
Sun Feb 6 10:04:36 PST 2011


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.
> 
> Johan
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org/mailman/listinfo/stringtemplate-interest



More information about the stringtemplate-interest mailing list