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

Bad performance of swizzling nxEV_layoutSubviews #13

Open
ludwigschubert opened this issue Oct 16, 2014 · 1 comment
Open

Bad performance of swizzling nxEV_layoutSubviews #13

ludwigschubert opened this issue Oct 16, 2014 · 1 comment

Comments

@ludwigschubert
Copy link

I'm not too sure why this is a problem, but Instruments showed me that 90+% of computation in my table view during simply scrolling was spent in the swizzled nxEV_layoutSubviews method.

Sorry I couldn't investigate further, but thought it was worth letting you know. Thanks in concept for the extension, though! :D

@markgaensicke
Copy link

Yes, I think this is because UIKit very frequently calls layoutSubviews during scrolling. The swizzled layoutSubviews method then calls nxEV_updateEmptyView which leads to the performance problems you've mentioned.

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