We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Annotation方式注册方式中使用了 void initProphet() { _dyld_register_func_for_add_image(dyld_callback); } dyld_callback被回调次数非常多,如果注册的比较多的话会不会引起性能问题?
void initProphet() { _dyld_register_func_for_add_image(dyld_callback); }
The text was updated successfully, but these errors were encountered:
注册是在运行前发生的,所以无所谓;BHModuleManager.registerDynamicModule 在注册的时候是去重的,所以也不会影响运行时的性能。
BHModuleManager.registerDynamicModule
__block BOOL flag = YES; [self.BHModules enumerateObjectsUsingBlock:^(id _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) { if ([obj isKindOfClass:class]) { flag = NO; *stop = YES; } }]; if (!flag) { return; }
Sorry, something went wrong.
No branches or pull requests
Annotation方式注册方式中使用了
void initProphet() { _dyld_register_func_for_add_image(dyld_callback); }
dyld_callback被回调次数非常多,如果注册的比较多的话会不会引起性能问题?
The text was updated successfully, but these errors were encountered: