nullMethod and performances

34 views
Skip to first unread message

Harold Comere

unread,
Aug 2, 2012, 3:40:04 AM8/2/12
to google-we...@googlegroups.com
Hi all,

I have noticed that with firefox almost 8% of the runtime time is in nullMethod function.

What does mean this nullMethod and what does generate calls to it ?

Thanks for your attention.

Regards,
Harold

Paul Stockley

unread,
Aug 2, 2012, 9:40:35 AM8/2/12
to google-we...@googlegroups.com
GWT preserves the JAVA semantics of statics i.e. they are initialized on first access. This is achieved by calls to $clinit_.. methods that do the initialization. Within the body of these $clinit  functions, once initialization is complete,  they assign the nullMethod function to themselves. So the next time the $clinit method is called, the do nothing function is called.

So if this is a significant problem, avoid using statics.
Reply all
Reply to author
Forward
0 new messages