On Jan 15, 4:47 pm, mr_justin <[email protected]> wrote: > Hey kangax, > I just cloned prototype's git source, ran the tests to generate the > HTML test files, then edited the _destroyCache() method to include the > following: > > for (var element in Element.cache) Element.cache[element] = null; > > (it already includes code to stopObserving all events) > > I then loaded up dom_test.html in IE7, with process explorer running, > and refreshed the page 10 times. Initially the memory went up after a > refresh (the first 2 refreshes, memory increased) but then every > refresh after that created no change whatsoever in memory. See below > image (the spikes in the CPU Usage are page loads). You can see that > over time, the memory doesn't even dip down when the page is being > redrawn. Compare that to the previously linked memory usage charts on > the Prototip demo page. > > http://sandbox.enjoybeing.net/prototype-dom-test-memory-ie7.jpg
Very good :) Does prototip still leak after applying this "patch"? P.S. I could have sworn `stopObserving` loop was removed from the source at some point (I think right before 1.6.0.3 release). Oh well. -- kangax --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---
