Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS8下应该改进一下大量数据的计算时间开销 #214

Open
wuxfheb opened this issue May 23, 2016 · 1 comment
Open

iOS8下应该改进一下大量数据的计算时间开销 #214

wuxfheb opened this issue May 23, 2016 · 1 comment

Comments

@wuxfheb
Copy link

wuxfheb commented May 23, 2016

在我的使用中,获取1K条左右的数据,reload一次大约需要3S(5S)左右.
根据: http://useyourloaf.com/blog/self-sizing-table-view-cells/ 的说明

self.tableView.estimatedRowHeight = 100.0;
self.tableView.rowHeight = UITableViewAutomaticDimension;

如果告诉系统预估高度的话,reload时间大约可以缩小到1S以内,油水还是很可观的。

@JosephPoplar
Copy link

在iOS 7 以上加上这两句 的确快了很多,之前在加载大数据时几乎卡顿

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants