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

对于初始化其他组件我有写疑问 #17

Open
WDevaloper opened this issue Sep 14, 2019 · 0 comments
Open

对于初始化其他组件我有写疑问 #17

WDevaloper opened this issue Sep 14, 2019 · 0 comments

Comments

@WDevaloper
Copy link

1、你现在使用的是解析Manifest,如果组件比较多会不会造成启动起诉比较慢,这里是不能延迟加载?
2、我有两个方案:
2.1、第一种就是编译期注解,并在运行时遍历dex找到映射表加载组件到内存中,当然这也是耗时操作,可以延迟加载;
2.2、第二章就是通过Content Provider,注入Application,这样就需要组件自己去实现,这种方案是启动Content Provider多会消耗一定的系统资源;

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

1 participant