gwt2.0 memory leak

11 views
Skip to first unread message

tarik

unread,
Jun 11, 2010, 8:50:16 AM6/11/10
to Google Web Toolkit
I am using GWT2.0, I would like to know how to decrease memory
consumption for GWT? I am using Internet explorer 6. Please give me an
answer as soon as possible? Thank you.

Daniel Le Clere

unread,
Jun 11, 2010, 12:07:19 PM6/11/10
to Google Web Toolkit
Details? Are you using widgets? An RPC? Some sort of design pattern?
Are you using innerHTML placement or are you trying to build your
entire layout using javascript generated DOM objects? Are you building
new DOM structures inside or outside the body of the document? Do you
have a massive table of data and a event listener on every cell? Do
you have a one pixel wide background image you are repeating across
the entire page? How are you styling your CSS? Are you using a lot of
inheritance to try and style nodes (like .style b)? Are using the DOM
to try and find the position or dimensions of elements much? Have you
used a profiling application such as Speed Tracer (Yes it's not a IE
thing, but it can help) to try and narrow it down?

As you can see from that dense list of questions above, there are a
lot of things to consider in Javascript-GWT development. If you'd like
a prompt response, I would suggest you attempt to answer at least some
of them for yourself and posting your reflections back within this
thread. Try watching some of the videos from Google IO 2009/2010.

Hope that helps!

Stefan Bachert

unread,
Jun 13, 2010, 6:26:00 AM6/13/10
to Google Web Toolkit
Hi Tarik,

IE and IE6 is not a good target for any kind of Ajax application.
IE6 is known for memory leaks and extremely poor performance of
javascript, and for lots of incompatibilites.

When you are able to switch to a modern browser, do it soon, otherwise
you will have a lot pain dealing with Mega Scrap browsers.

Your project will take 3-4 times more efforts than with modern browser
but with poor results.
And all that because some customer won't spend 5 minutes to download a
modern browser.

Stefan Bachert
http://gwtworld.de

tarik kandil

unread,
Jun 13, 2010, 5:02:48 PM6/13/10
to google-we...@googlegroups.com
I will answer your questons Daniel,
Yes, I am using widgets. Of course I use RPC calls. MVC pattern in my application. I use innerHTML and dom objcts. I use a bindable datatable to show my data. Besides, This datatable is the one that consumes most of the memory.  I am using one doc CSS. And I am using a lot of inheritance. I use a doom to find the dimension of the elements.

--
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.




--
Tarik Kandil
Consultant Informatique

tarik

unread,
Jun 14, 2010, 4:08:21 AM6/14/10
to Google Web Toolkit
Is there a way to decrease the consumption of memory for widgets,
datatable.

Daniel Le Clere

unread,
Jun 17, 2010, 9:28:14 AM6/17/10
to Google Web Toolkit
For some reason my last message didn't go through. I don't have time
to retype the other thing, but essentially have a look at
http://code.google.com/webtoolkit/doc/latest/ReleaseNotes.html#DataPresentationWidgets
and gwt incubator. You want to re-implement it using a design that
utilises flyweight rather than the clunky widget currently packaged
with GWT.
Reply all
Reply to author
Forward
0 new messages