xmartlabs / XLPagerTabStrip

Android PagerTabStrip for iOS.
MIT License
6.97k stars 1.32k forks source link

Optimize for more efficient and predictable performance by changing Array to CountiguousArray #825

Open wanderingfairy opened 3 years ago

wanderingfairy commented 3 years ago

I changed to use ContiguousArray< UIViewController > type to store UIViewControllers in a contiguous block of memory.

When using a large number of UIViewControllers as tabs, I think that using ContiguousArray will yield more predictable performance compared to Array.

The changed source file is:

for Example:

References