This content has been marked as final.
Show 3 replies
-
1. Re: Should you remove MouseEvent listeners if you navigate away from the frame they're on?
kglad Feb 9, 2010 10:39 AM (in response to Webshark2000)unless you're returning to that frame frequently, failing to remove those listeners won't occupy much additional memory.
you can test using System.totalMemory.
-
2. Re: Should you remove MouseEvent listeners if you navigate away from the frame they're on?
Webshark2000 Feb 9, 2010 10:51 AM (in response to kglad)Well, it starts out around 65 Megs. If I navigate around a lot, going back to the videos page (playing several of them, stopping, starting, etc) it'll jump up there quite a bit. It went to about 200 Megs after a couple minutes of jumping around.
This probably won't be too much of a concern since I don't expect the users to be jumping around a whole lot. They should fire it up to check a few things, then shut it down.
Thanks.
-
3. Re: Should you remove MouseEvent listeners if you navigate away from the frame they're on?
kglad Feb 9, 2010 11:28 AM (in response to Webshark2000)that's a lot more memory use than you would expect from adding and readding listeners a few thousand times.



