mirror of
https://github.com/Instagram/IGListKit
synced 2026-05-18 14:58:34 +00:00
Summary: * Issue: [IGListAdapter visibleSectionControllers] calls [UICollectionViewLayout layoutAttributesForElementsInRect:] which can be expensive. And since visibleSectionControllers is called in scrollViewDidScroll, it can add up and take a toll on scroll performance. On an iPhone 7, it's in 2-10% of the main-thread samples (using Time Profiler). * Fix: IGListDisplayHandler conveniently keeps track of visible IGListSectionControllers, so let's just use that. Now, [IGListAdapter visibleSectionControllers] drops to ~0.3% of samples. Reviewed By: rnystrom Differential Revision: D6351474 fbshipit-source-id: 66914db95e08498927bfbceda4d2e9d58cbc7530 |
||
|---|---|---|
| .. | ||
| Common | ||
| Internal | ||
| IGListAdapter.h | ||
| IGListAdapter.m | ||
| IGListAdapterDataSource.h | ||
| IGListAdapterDelegate.h | ||
| IGListAdapterUpdateListener.h | ||
| IGListAdapterUpdater.h | ||
| IGListAdapterUpdater.m | ||
| IGListAdapterUpdaterDelegate.h | ||
| IGListBatchContext.h | ||
| IGListBindable.h | ||
| IGListBindingSectionController.h | ||
| IGListBindingSectionController.m | ||
| IGListBindingSectionControllerDataSource.h | ||
| IGListBindingSectionControllerSelectionDelegate.h | ||
| IGListCollectionContext.h | ||
| IGListCollectionViewLayout.h | ||
| IGListCollectionViewLayout.mm | ||
| IGListDisplayDelegate.h | ||
| IGListGenericSectionController.h | ||
| IGListGenericSectionController.m | ||
| IGListKit.h | ||
| IGListReloadDataUpdater.h | ||
| IGListReloadDataUpdater.m | ||
| IGListScrollDelegate.h | ||
| IGListSectionController.h | ||
| IGListSectionController.m | ||
| IGListSingleSectionController.h | ||
| IGListSingleSectionController.m | ||
| IGListStackedSectionController.h | ||
| IGListStackedSectionController.m | ||
| IGListSupplementaryViewSource.h | ||
| IGListUpdatingDelegate.h | ||
| IGListWorkingRangeDelegate.h | ||
| Info.plist | ||