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

ASDataController locks to wait when processing multiple changes (reloadRow、deleteRow). #1266

Open
hanweixing opened this issue Dec 4, 2018 · 2 comments

Comments

@hanweixing
Copy link

Hi, i met a problem, need to get your help, which is like title said.
The scene is, i have more than 400 cell nodes in my ASTableNode, and each cell node refers to one network request, when the network request finished, the cell node would be reload or delete from this ASTableNode, of course, i just update those cell nodes in visible area. And now, anyway, i need to update cell nodes multiple times in short time, and the main thread is blocked.
Screenshot is like blow:
2018-12-04 11 07 00
From the screenshot, dispatch_group_wait(_editingTransactionGroup, DISPATCH_TIME_FOREVER); matters.
That is, if last update (reloadRowdeleteRow or reloadData) did not end, the current update would sleep to wait until the main thread has spare time to handle.
Anyone had same problem? I am really confused. Thanks for any coming support.

@GeekTree0101
Copy link
Contributor

#1239

@strangeliu
Copy link
Contributor

I met this problem when using the master branch and version 2.7 does't has this problem.

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

3 participants