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

Are there concrete measurements about performance of sizeThatFits? #18

Open
sm11963 opened this issue Mar 1, 2018 · 1 comment
Open

Comments

@sm11963
Copy link

sm11963 commented Mar 1, 2018

I'm wondering what that performance graph in the project README is showing? Is it sizeThatFits performance? How is that measured?

Also if its not sizeThatFits, is there any data you have on the performance of sizeThatFits?

@KyoheiG3
Copy link
Owner

KyoheiG3 commented Mar 4, 2018

Hi @sm11963
It is not sizeThatFits performance. It is the performance graph on iOS 8 when it used intrinsicContentSize on UICollectionViewCell.
First, I made Date variable after dequeueReusableCell. Next, insert NSAttributedString into Label's attributedText of the Cell. Finally, I measured the difference of time interval from the first date if the layoutSubviews of the Cell.
Also, I do not have any data the performance of sizeThatFits. You can try it easily.

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