ElaWorkshop / TagListView

Simple and highly customizable iOS tag list view, in Swift.
MIT License
2.63k stars 492 forks source link

fix addTagViews: avoid redundant rearrangeViews invoke #258

Closed jeffssss closed 4 years ago

jeffssss commented 4 years ago

addTagViews has Performance issues.

the rearrangeViews runs so many times when multiple tags are added. in my situation, i have 170+ tags to display, and it cost about 6 seconds to display. after modify addTagViews, the time cost reduce to 0.13ms