typeFromObject() in ArgumentCodersCocoa.mm calls [PlatformFont class] which invokes the class’s initializer. This is wasteful to do in the Networking process, which doesn’t use the class otherwise.
Created attachment 372721 [details] Use NSClassFromString to avoid unnecessary initialization
Comment on attachment 372721 [details] Use NSClassFromString to avoid unnecessary initialization Clearing flags on attachment: 372721 Committed r246726: <https://trac.webkit.org/changeset/246726>
All reviewed patches have been landed. Closing bug.
<rdar://problem/52040306>
Comment on attachment 372721 [details] Use NSClassFromString to avoid unnecessary initialization View in context: https://bugs.webkit.org/attachment.cgi?id=372721&action=review > Source/WebKit/Shared/Cocoa/ArgumentCodersCocoa.mm:115 > + if ([object isKindOfClass:platformColorClass()]) Oh, really nice. Thank you guys for improving that!