I am having difficulty in getting acceptable performance when trying to use UICollectionViewDiffableDataSource in conjunction with a NSFetchedResultsController when the number of fetched objects is large (8000+). In comparison to using the NSFetchedResultsController directly as the data source, using a diffable data source and populating it with a snapshot in controller(_ :, didChangeContentWith:) is very slow.
I have set my fetch request to a small batch size (20), the same exact fetch request populates the collection view almost instantly when using the NSFetchedResultsController as the data source via the usual collection view data source methods.
I have set my fetch request to a small batch size (20), the same exact fetch request populates the collection view almost instantly when using the NSFetchedResultsController as the data source via the usual collection view data source methods.