GWT Collections emulation library performance

27 views
Skip to first unread message

Nikos Dimitrakopoulos

unread,
Sep 26, 2010, 8:03:26 AM9/26/10
to Google Web Toolkit, web...@rento.gr
I've written a blog post regarding (the poor) performance of the
Collections emulation in GWT called "GWT Collections emulation library
performance pitfall" and you can find it here :
http://blog.nikosd.com/2010/09/benchmarking-gwt-collections-emulation.html.
It has some benchmarks regarding initializing collections and
iterating around them on IE, Chrome and Firefox and some conclusions.

I'm not sure whether this is issue is known (and accepted as simply
"nothing can be done") or not and this is why I'm posting here this
link. Hopefully it will get some attention from the core GWT
developers. Any feedback, discussion, suggestions, alternative
workarounds etc are more than welcome.

Артём

unread,
Sep 26, 2010, 11:01:58 AM9/26/10
to Google Web Toolkit
What happens when you use "for (int i = 0; i < list.size(); i++)" to
iterate over ArrayList?

On 26 сен, 16:03, Nikos Dimitrakopoulos <demis...@gmail.com> wrote:
> I'm not sure whether this is issue is known (and accepted as simply
> "nothing can be done")

I've Googled an interesting example how GWT can optimize iterators:
http://timepedia.blogspot.com/2008/06/design-patterns-vs-gwt-compiler.html

I wonder what GWT makes from your "iterateTest".
Can you compile with detailed and post the JavaScript code of
iterateTest?

Arthur Kalmenson

unread,
Sep 28, 2010, 8:46:20 PM9/28/10
to google-we...@googlegroups.com
It's known that the Collections emulation has some performance
penalty. The GWT team is working on a solution:
http://code.google.com/p/google-web-toolkit/wiki/LightweightCollections

--
Arthur Kalmenson

2010/9/26 Артём <arte...@gmail.com>:

> --
> 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-we...@googlegroups.com.
> To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages