Skip to content

Conversation

@zhongwuzw
Copy link

revert code

bugFix: cover show style layout attribute miscalculation
fix memory leaks
update
revert code
@MillmanY
Copy link
Owner

you can't remove (index >= shitIdx-2) if you have lots of cell will very slow because of cell in the rect of screen

add frame calculate
@zhongwuzw
Copy link
Author

Yep, you can just add frame set when index < shitIdx-2,like add frame calculate

@zhongwuzw
Copy link
Author

By Instruments,I found the reason of frame drop is not attribute generate(ps. we can cache the attribute object,other than create new attribute object every layout loop),but offscreen-Rendered:

        self.layer.shadowOffset = offset
        self.layer.shadowOpacity = opacity
        self.layer.shadowColor = UIColor.black.withAlphaComponent(0.5).cgColor

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

Successfully merging this pull request may close these issues.

3 participants