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

scrolling hangs with more then 50 records #79

Closed
DmitryVaganov opened this issue Nov 12, 2014 · 13 comments
Closed

scrolling hangs with more then 50 records #79

DmitryVaganov opened this issue Nov 12, 2014 · 13 comments

Comments

@DmitryVaganov
Copy link

scrolling hangs with more then 50 records

@leszek-s
Copy link

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.

@Augustyniak
Copy link
Owner

Hey,
Thanks for the report. I will look into this problem. Are you sure you not perform any time consuming operations in methods of the RATreeView's data source or delegate?

@vlad-brylinski
Copy link

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.

@fprosper
Copy link
Contributor

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!

@noveleven
Copy link

Now RATreeView works smoothly in my project. To expand or scrolling hangs won't happen again. @vbrylinskiy thanks!

@sadaqata
Copy link

Is this now merged with the same branch?

@leszek-s
Copy link

I've created a pull request with this fix some time ago but it is still waiting for acceptance.

@vlad-brylinski
Copy link

I don't think that my workaround should be merged into the main repo. The focus should be made on fixing the architecture.

@Augustyniak
Copy link
Owner

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.
Closing issue. Feel free to reopen if necessary.

@jingchunYuan
Copy link

初始化时,如何展开多有的节点啊?

@wuyezhiguhun
Copy link

Hello, I now have 50000 records, each time you expand and merge nodes are very slow, how to solve?(你好,我现在有50000条记录,每次展开和合并节点的时候都很慢,请问怎么能解决?)

@MrNAVY
Copy link

MrNAVY commented Apr 12, 2017

@implementation RATreeView (TableViewDataSource)

  • (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
    {
    return 1;
    }
    how can i change this method ,i want return more section?

@MrNAVY
Copy link

MrNAVY commented Apr 12, 2017

要展开多个section 怎么做呢?所有的页面都连着在一起,要分开一些section 好像做不到

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

No branches or pull requests

10 participants