mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-11-15 13:22:12 +01:00
performant access of relationship objectIDs for snapshots
This commit is contained in:
1 parent
361dba58c6
commit
231e138ab0
10 files changed
+121
-89
No files matched your search
@@ -133,11 +133,7 @@ public struct ObjectProxy<O: CoreStoreObject> {
|
||||
let keyPathString = field.keyPath
|
||||
self.getValue = {
|
||||
|
||||
return type(of: field).read(
|
||||
field: field,
|
||||
for: rawObject,
|
||||
bypassThreadCheck: true // May be called from NSError logs
|
||||
) as! V
|
||||
return type(of: field).read(field: field, for: rawObject) as! V
|
||||
}
|
||||
self.setValue = {
|
||||
|
||||
@@ -163,11 +159,7 @@ public struct ObjectProxy<O: CoreStoreObject> {
|
||||
let keyPathString = field.keyPath
|
||||
self.getValue = {
|
||||
|
||||
return type(of: field).read(
|
||||
field: field,
|
||||
for: rawObject,
|
||||
bypassThreadCheck: true // May be called from NSError logs
|
||||
) as! V
|
||||
return type(of: field).read(field: field, for: rawObject) as! V
|
||||
}
|
||||
self.setValue = {
|
||||
|
||||
@@ -200,11 +192,7 @@ public struct ObjectProxy<O: CoreStoreObject> {
|
||||
let keyPathString = field.keyPath
|
||||
self.getValue = {
|
||||
|
||||
return type(of: field).read(
|
||||
field: field,
|
||||
for: rawObject,
|
||||
bypassThreadCheck: true // May be called from NSError logs
|
||||
) as! V
|
||||
return type(of: field).read(field: field, for: rawObject) as! V
|
||||
}
|
||||
self.setValue = {
|
||||
|
||||
|
||||
Reference in new issue
Block a user