kanytu / android-parallax-recyclerview

An adapter which could be used to achieve a parallax effect on RecyclerView.
Apache License 2.0
1.61k stars 284 forks source link

Memory Growing Issue #24

Open KingWu opened 9 years ago

KingWu commented 9 years ago

just install sample project. Run on an emulator. Open Memory Monitor. Scroll up and down with several times. Memory is growing. Sometimes GC start, but cannot release more memory. Always call GC.

Any idea on this issue?

Thanks

kanytu commented 9 years ago

Memory growing could be numerous things. However it's expected to lower when GC is called. Could you share a heap dump so I can analyze what's causing the memory clog?

KingWu commented 9 years ago

you cannot reproduce?

kanytu commented 9 years ago

Just checked with the example project. The memory is growing but if you force GC it will come back to normal

KingWu commented 9 years ago

i try it on emulator. Sometimes after GC, the UI is freeze.

kanytu commented 9 years ago

The UI is supposed to freeze on a GC call since it runs on the UI thread. I think you should try it on a real device instead. Emulators are not good examples to test performance