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

[ListMonitor] Fix performance of `subscript(safeSectionIndex:safeItemIndex:)`.
This commit is contained in:
John Estropia authored and GitHub committed 2018-12-06 10:54:12 +09:00
commit 42caee2418
1 file changed
+1 -1
+1 -1
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])]
}
/**