Question

I made a mistake when using Leaks instrument that I thought total living objects is byte of memory, so I updated my post!

[Updated]

Hello All,

I am facing with a problem that:

My application present realtime data by using UITableView which may contains maximum 34 customized cells, so when receiving update data, I have to do reloadData for that UITableView, It usually be reloaded 2-3 times/second to update 2-5 cells (and addition that when a cell is updated, I use UiView animation to blinking the related text label).

When starting application, everything is ok, it run smoothly, but keep it running in about 20-30 minutes, it become slow down and sometime hang in a second. I did use Leaks instrument to test my application and see that after started it use about 17Mb of memory, but after 20-30 minutes, it use 25k-28k living object (1.7Mb of memory), When I tried to navigate over all screens, it use up to 80K living objects (6.5Mb of memory) :(

I guess that the UITableView is reloaded many times cause my application use more and more memory time after time and make it run slowly.

So anybody know how to resolve this problem, please help me, thanks you a lot!

Was it helpful?

Solution

OTHER TIPS

Correct memory leak instead of workaround...

At each data reception you should not release all data that increase your memory size.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top