Implemented lazy parsing of method signatures to improve TTI

This commit is contained in:
Nick Lockwood
2015-08-11 08:33:28 -07:00
parent 57a6a02dff
commit a5e9f83a0a
5 changed files with 240 additions and 213 deletions

View File

@@ -88,7 +88,7 @@ RCT_NOT_IMPLEMENTED(-init);
[self.methods enumerateObjectsUsingBlock:^(RCTModuleMethod *method, NSUInteger idx, __unused BOOL *stop) {
methodconfig[method.JSMethodName] = @{
@"methodID": @(idx),
@"type": method.functionKind == RCTJavaScriptFunctionKindAsync ? @"remoteAsync" : @"remote",
@"type": method.functionType == RCTFunctionTypePromise ? @"remoteAsync" : @"remote",
};
}];
config[@"methods"] = [methodconfig copy];