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

Performance issues during supplementary view layout #108

Open
jwilling opened this issue Mar 12, 2014 · 0 comments
Open

Performance issues during supplementary view layout #108

jwilling opened this issue Mar 12, 2014 · 0 comments

Comments

@jwilling
Copy link
Owner

During profiling, I noticed that there were several issues in the layout of supplementary views that is only noticeable if there are a large number of supplementary views.

  1. The reuse identifier for supplementary views is stored as a combination of the kind and the reuse identifier, separated by the / character. This is nice, except for the fact that when we want to retrieve the kind or the reuse identifier it requires the call to componentsSeparatedByString:, which is unfortunately a bit slow. It seems like this should be unnecessary. This might be good to look into.
  2. Unlike the cells, the calls to determine if a section is inside a rect are not forwarded to the layout. Instead, it's done by a linear search through the sections. This is quite inefficient when there are a large number of sections, and the layout could much more effectively handle this.
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

1 participant