Assuming you meant 'virtual' in the C++ sense, then, nothing.

On Jan 3, 1:09 pm, Jason Morris <lem...@gmail.com> wrote:
> nathan.r.matth...@googlemail.com wrote:
> > 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
>
> Hi Nathan,
>
> Someone else can correct me if I'm wrong, but after taking a look at the 
> generated code, it seems
> that virtual methods 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-virtual method.
>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to