[Dojo-interest] Memory leaks in Javascript-createdwidgetsandevent
handlers?
mengel at notes.cc.sunysb.edu
mengel at notes.cc.sunysb.edu
Thu Jan 4 09:23:29 MST 2007
My time issue apparently went away earlier than I originally
thought....sorry. The test page that creates the 200 'Hello, World'
messages creates a div element for each one. In the destroyAll method,
the textnode is removed, but the div element is apparently not, however it
is unlinked from the main body leaving it unattached and never collected.
I made the following changes, and the memory leak seemed to have gone
away, however the time issue is still there. It's definitely linked to
the event assignment, when remarked out the time issue goes away. There
must be something that's necessary to do in order to unlink it.
Matthew Engel
Senior Programmer/Analyst
State University of New York at Stony Brook
mengel at notes.cc.sunysb.edu
"Aaron Evans" <aaronmevans at gmail.com>
Sent by: dojo-interest-bounces at dojotoolkit.org
01/04/2007 10:44 AM
Please respond to
dojo-interest at dojotoolkit.org
To
dojo-interest at dojotoolkit.org
cc
Subject
Re: [Dojo-interest] Memory leaks in Javascript-createdwidgetsandevent
handlers?
Thx for the info, but we were talking time, not memory. He says that
it was an IE6 issue, so I'll have to do more testing. Also, it may
not be "exponential" per se, but may be geometrical. It certainly
seems to be more than linear with number of widgets.
-aaron
On 1/4/07, Jayaram <jkrishnaswamy at comcast.net> wrote:
>
>
> In all fairness to dojo the increase is not exponential for Martin's
example
> code.
>
> At first 19240 K
> First click 25108 K
> Second Click 29960 K
> Third click 35544 K
> Fourth click 40540 K
> Fifth click 46104 k
> At Destroy 583428K
>
> But the effect is substantial slowdown.
>
> ----- Original Message -----
> From: Aaron Evans
> To: dojo-interest at dojotoolkit.org
> Sent: Thursday, January 04, 2007 9:46 AM
> Subject: Re: [Dojo-interest] Memory leaks in
> Javascript-createdwidgetsandevent handlers?
>
>
>
>
> On 1/3/07, mengel at notes.cc.sunysb.edu <mengel at notes.cc.sunysb.edu >
wrote:
> >
> > One thing I've found. I've timed my functions and it seems the create
> time increases exponentially each time the function is called. Your
video
> seems to show the same thing, however I haven't run your code on my
machine
> to test. It seems as though a list is being searched, and added to each
> time the function is called.
> >
> >
>
> Hmm, interesting. I think I have been seeing the same thing. I have an
> application where the number of widgets that are created in a page is
> arbitrary.
>
> n some instances there may be around 50 or so and I've found that page
load
> time is insanely long, and seems to be, as you said, exponentially
longer.
> Haven't had much time to dive into it yet though. For this particular
> interface, we may have to abandon using widgets for this reason...
>
>
>
>
> ________________________________
>
>
> _______________________________________________
> Dojo FAQ: http://dojo.jot.com/FAQ
> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> Dojo-interest at dojotoolkit.org
> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>
>
> ________________________________
>
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.409 / Virus Database: 268.16.4/615 - Release Date: 1/3/2007
>
>
>
> _______________________________________________
> Dojo FAQ: http://dojo.jot.com/FAQ
> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> Dojo-interest at dojotoolkit.org
> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>
>
>
_______________________________________________
Dojo FAQ: http://dojo.jot.com/FAQ
Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
Dojo-interest at dojotoolkit.org
http://dojotoolkit.org/mailman/listinfo/dojo-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dojotoolkit.org/pipermail/dojo-interest/attachments/20070104/9a5b984d/attachment-0001.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dojotoolkit.org/pipermail/dojo-interest/attachments/20070104/9a5b984d/btn-tst-0001.html
More information about the Dojo-interest
mailing list