Skip to content

Commit c82c849

Browse files
Added proper caching to PFObjectSubclassInfo.
Silly mistake. Doesn't cause any real-world problems other than performance and memory usage thankfully. Fixes #125.
1 parent cb682bc commit c82c849

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Parse/Internal/Object/Subclassing/PFObjectSubclassInfo.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ - (instancetype)initWithSubclass:(Class)kls {
8888
_dataAccessQueue = dispatch_queue_create("com.parse.object.subclassing.data.access", DISPATCH_QUEUE_SERIAL);
8989
_subclass = kls;
9090

91+
_knownProperties = [NSMutableDictionary dictionary];
92+
_knownMethodSignatures = [NSMutableDictionary dictionary];
93+
9194
return self;
9295
}
9396

0 commit comments

Comments
 (0)