Skip to content
New issue

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

ModuleManager.getInstance().registerArr 耗时100ms问题 #149

Open
unicornIsNotUnicode opened this issue Dec 14, 2024 · 2 comments
Open

Comments

@unicornIsNotUnicode
Copy link

请问该处使用了反射(.optimizeInit(false))导致application初始化会因此在主线程耗时100ms,请问可以将ModuleManager.getInstance().registerArr放在线程池里执行吗

@unicornIsNotUnicode
Copy link
Author

不行,sdk内部会抛错,无法运行在非主线程

@xiaojinzi123
Copy link
Owner

额 以前写的架构上确实有点小问题.
新版 KComponent 大概就 20ms
老版本我动架构不太合适了, 要不你迁移到新版 KComponent?
反正也是兼容的, 最多改到一些 Java Activity 上的路由标记. 很快就搞定的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants