-
Notifications
You must be signed in to change notification settings - Fork 465
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
scrolling hangs with more then 50 records #79
Comments
I also noticed that. This is a great library but unfortunately it is working really slow when there is about 100 rows in the table view. |
Hey, |
Hi. I also had the same problem and figured out it's reason. Each time your treeView wants to display a row, it asks RATreeNodeController for it's index. This object calculates it's index based on all previous RATreeNodeController indexes in hierarchy. So the more cells (RATreeNodeControllers) you display the more lags you have. I made a simple workaround in my fork and you can use that. What I have done is caching of RATreeNodeController's indexes. |
Hi, I tried your workaround @vbrylinskiy as I had a row to expand with 326 children which was hanging the main queue for almost 10 secs. With your workaround it takes it now takes less than 1 sec. Thanks! |
Now RATreeView works smoothly in my project. To expand or scrolling hangs won't happen again. @vbrylinskiy thanks! |
Is this now merged with the same branch? |
I've created a pull request with this fix some time ago but it is still waiting for acceptance. |
I don't think that my workaround should be merged into the main repo. The focus should be made on fixing the architecture. |
Today version 1.0.0 was released. It should fix performance issues. There are also some additional changes (described in release notes). I hope it will help. |
初始化时,如何展开多有的节点啊? |
Hello, I now have 50000 records, each time you expand and merge nodes are very slow, how to solve?(你好,我现在有50000条记录,每次展开和合并节点的时候都很慢,请问怎么能解决?) |
@implementation RATreeView (TableViewDataSource)
|
要展开多个section 怎么做呢?所有的页面都连着在一起,要分开一些section 好像做不到 |
scrolling hangs with more then 50 records
The text was updated successfully, but these errors were encountered: