Slow loading of a UITableView. How to know why?

I have a UITableView that shows a long list of data. Use sections and follow instructions How to solve slow scrolling in UITableView .

The thread loads the main UITableView and clicks the second row select.

However, for 3000 items it takes 11 seconds to display. I suspect first from loading records from sqlite (preloading the first 200). So I reduced it to 50.

However, whether I load only 1 or 500, the time will be the same.

The view is made from IB, and everything is opaque.

I'm running out of ideas on how to identify a problem. I am running the Tools tool, but I don’t know what to see.

In addition, when the user selects a cell from the previous UITable, visual feedback is not displayed (i.e. the cell does not turn on) for a while, so he thinks that he does not select it and does not execute it several times. Associated with this issue.

What to do?

NOTE. The problem is only in the device itself:

  • iPod Touch 2d Generation
  • Using fmdb as sqlite api
  • Performing caching in viewDidLoad
  • Using NSDictionary for Caching
  • Using NSAutoreleasePool for the caching part.
  • Only caching mac 4 row and field IDs needed to display cell data
  • UIView created using the Interface Builder SDK 2.2.1
  • The tools say that I use 2.5 MB in the device
+2
2

- [FMResultSet next] , . sqlite , . .

, . , FMDB , .

, tableview , NSOperations .

+2

, , , .

, . , CREATE INDEX SQL.

0

Source: https://habr.com/ru/post/1711883/


All Articles