Re: Performance overhead of virtual methods

2009-01-15 Thread nathan.r.matth...@googlemail.com

Thanks Jason and to the others who responded. Question answered :)

On Jan 3, 12:09 pm, Jason Morris  wrote:
> nathan.r.matth...@googlemail.com wrote:
> > Hi GWTers
>
> > I'm writing some performance sensitive code for GWT. I'm wondering how
> > GWT compilesvirtualfunctions to JavaScript. What's the associated
> > performance overhead? Obviously I'd like to use proper polymorphism
> > but if there's a significant performance overhead it may be worth re-
> > factoring various parts of the code-base.
>
> > Regards,
>
> > Nathan
>
> Hi Nathan,
>
> Someone else can correct me if I'm wrong, but after taking a look at the 
> generated code, it seems
> thatvirtualmethods shouldn't incur any additional performance overhead in 
> GWT. Basically the
> bottom level method is given the top-level declared name in each object 
> instance, thus the lookup
> expense is the same as that of a non-virtualmethod.
>
> Like I said, if I'm wrong on this, someone should correct me. ;)
>
> Cheers,
> Jason.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Performance overhead of virtual methods

2008-12-30 Thread nathan.r.matth...@googlemail.com

Hi GWTers

I'm writing some performance sensitive code for GWT. I'm wondering how
GWT compiles virtual functions to JavaScript. What's the associated
performance overhead? Obviously I'd like to use proper polymorphism
but if there's a significant performance overhead it may be worth re-
factoring various parts of the code-base.

Regards,

Nathan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---