AttributedLabel icon indicating copy to clipboard operation
AttributedLabel copied to clipboard

Are there concrete measurements about performance of sizeThatFits?

Open sm11963 opened this issue 6 years ago • 1 comments

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?

sm11963 avatar Mar 01 '18 19:03 sm11963

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.

KyoheiG3 avatar Mar 04 '18 17:03 KyoheiG3