torch2424 / link-drops

A collection of your links that you find across the internet, made with the help of @julianpoy
http://linkdrops.com/#/
Apache License 2.0
2 stars 1 forks source link

Massive Memory Leak? #56

Closed torch2424 closed 8 years ago

torch2424 commented 8 years ago

Link Drops seems to be using ALOT of memory, We should discover what is going on!

julianpoy commented 8 years ago

Could you investigate this with the chrome analyzer?

torch2424 commented 8 years ago

sure yo!

julianpoy commented 8 years ago

How it do?

torch2424 commented 8 years ago

To be honest, I dont quite understand how to use chrome's memory analyzer, but when I tried to figure out, it did seem like something was wrong. It was using ALOT of memory, but it wasnt the highest memory task actually. Honestly, I'd like it if we did this issue together. You're better at finding "wrong" code, than I am, and I think we could both use the learning experience

julianpoy commented 8 years ago

Coolio sounds like a plan

torch2424 commented 8 years ago

After some research (Top 2 best):

http://www.codeproject.com/Articles/882966/Fixing-Memory-Leaks-in-AngularJS-and-other-JavaScr http://makandracards.com/makandra/31289-how-to-create-giant-memory-leaks-in-angularjs http://stackoverflow.com/questions/15970525/how-to-find-js-memory-leaks http://addyosmani.com/blog/taming-the-unicorn-easing-javascript-memory-profiling-in-devtools/

I think I want to conclude that the application itseld is not leaking memory. I think it relates to the amount of iFrame the app uses. As I tested these methods on both the master linkdrops and aaronthedev (My simple personal site) and you can see they both react the same way. In linkdrops, I scrolled down, loaded all iframes, went to a page, and then went back did the same. And you will see that page switch, garbage collection happens, but does not return. I do the same on arronthedev, and i get the same results (Note in the end, i was letting the tab idle and do nothing, as you can see nothing is added to memory):

untitled recording 3 1

I think what we need to do is instead, try to improve the performance of the app as a whole.

torch2424 commented 8 years ago

Closing this, as I feel like I did a lot of testing and proven to a point that this issue is not a true issue, and I have gotten no feedback on this. So yeah, closing :)