Thanks Jason and to the others who responded. Question answered :) On Jan 3, 12: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 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 -~----------~----~----~----~------~----~------~--~---
Re: Performance overhead of virtual methods
nathan.r.matth...@googlemail.com Thu, 15 Jan 2009 12:55:58 -0800
- Performance overhead of virtual methods nathan.r.matth...@googlemail.com
- Re: Performance overhead of virtual ... Jason Morris
- Re: Performance overhead of virt... Reinier Zwitserloot
- Re: Performance overhead of virt... Arthur Kalmenson
- Re: Performance overhead of virt... nathan.r.matth...@googlemail.com