jadnco / locus

🏎️ Experimental car spotting app. This was an exercise to help me learn React Native + Flow.
0 stars 0 forks source link

Dispose large assets as views are unmounted #29

Open jadnco opened 8 years ago

jadnco commented 8 years ago

In particular the views associated to creating new Spots.

From a stationary standpoint, the app uses ~42MB of memory and ~7% CPU. Those numbers are pretty decent. As the user creates a new Spot this changes quickly.

I believe the memory is constantly increasing because the large photo assets aren't being disposed of as the views get un-mounted.

This is something that needs to get looked into. Using +100MB is totally fine, it's just not ideal.

jadnco commented 8 years ago

Managed to get this up to 500MB just by traversing through views and loading many images.