Skip to content

Conversation

wanderingfairy
Copy link

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:

  • Sources/PagerTabStripViewController.swift

for Example:

  • BarExampleViewController.swift
  • ButtonBarExampleViewController.swift
  • InstagramExampleViewController.swift
  • NavButtonBarExampleViewController.swift
  • SegmentedExampleViewController.swift
  • SpotifyExampleViewController.swift
  • TwitterExampleViewController.swift
  • YoutubeExampleViewController.swift
  • YoutubeWithLabelExampleViewController.swift

References

Replace those declared as Array<ViewController> with Contiguous Array<UIViewController> type that is stored in contiguous blocks of memory.
Replace those declared as Array<ViewController> with Contiguous Array<UIViewController> type that is stored in contiguous blocks of memory.
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.

1 participant