Merge pull request #287 from ruslanskorb/list-monitor-subscript-performance

[ListMonitor] Fix performance of `subscript(safeSectionIndex:safeItemIndex:)`.
This commit is contained in:
John Estropia
2018-12-06 10:54:12 +09:00
committed by GitHub

View File

@@ -144,7 +144,7 @@ public final class ListMonitor<D: DynamicObject>: Hashable {
return nil
}
return ObjectType.cs_fromRaw(object: section.objects![itemIndex] as! NSManagedObject)
return self[IndexPath(indexes: [sectionIndex, itemIndex])]
}
/**