Comments (2)
既然确实不同手机有快有慢,这个优化肯定要针对不同手机来做了。所以分析这个问题并不容易。可能影响比较大的还是磁盘I/O。如果你定位到具体某个方法确实慢,咱们可以一起考虑下怎么优化,比如之前有优化过加载宿主类的白名单的匹配。
按已有的经验,最有效的手段是预加载。在用户触发任何插件的功能前,提前主动执行完插件的application onCreate。尽可能让插件处于就差显示界面这一步了。如果插件还有什么方法可以提前执行,也要提前做。
from shadow.
我们还在定位更细致的方法耗时,之前有没有其他开发者反馈该类问题呢,是否有借鉴的方法可以分享?
from shadow.
Related Issues (20)
- 崩溃必现 android.util.SuperNotCalledException: Activity {com.xx.act.DefaultContainerActivity} did not call through to super.onCreate() HOT 1
- 替换add和findFragmentByTag等调用,给插件fragment的tag都加个前缀,是否可行?@shifujun
- 这样开发出来的app能上google play? HOT 1
- 想将android.content.res.TypedArray#getDrawable hook住,但是编译报错 HOT 2
- 插件中SO库更新问题
- 关于仿写插件访问sample-host-lib中HostAddPluginViewContainerHolder的疑问
- 升级com.google.android.material:material到1.11.0后编译报错 HOT 1
- 无法在插件进程启动Service
- getResource 的问题。
- Android 15 Beta版本 Sample Demo 启动插件稳定崩溃: java.lang.RuntimeException: AssetManager has been closed HOT 8
- FileProvider生成的uri无法系统应用中打开 HOT 1
- 部分Android14系统上的崩溃问题:lateinit property _pluginClassLoader has not been initialized HOT 11
- ShadowActivity中缺少方法: getThemeResId
- 每个插件都需要导入loader、runtime吗? HOT 4
- 关于needExtractNativeLibs的疑问 HOT 2
- 插件调用getOnBackInvokedDispatcher()报错:No virtual method getOnBackInvokedDispatcher()Landroid/window/OnBackInvokedDispatcher HOT 1
- 插件进程可以在自己的AndroidManifest文件声明一个Activity为另一个单独进程吗? HOT 1
- Android14上使用插件, 报错"java.lang.SecurityException: Writable dex file '/data/user/0/a.b.c/files/plugins/plugin-manager.apk' is not allowed."
- Android14上启动报错: One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified... HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shadow.