Comments (1)
ARouter 在路由表数量庞大、Group很多的情况下,性能会下降很多。
两个原因:
- 因为他分组初始化,每个group都是懒加载的方式被logiccenter调用的,在首次跳转到目标Activity的时候会触发一次路由表Group加载,每个分组在首次初始化时又都会遍历一遍全部路由表。
- 是因为他的路由表初始化在主线程完成的,正常情况下其实没问题只会白屏一会,当路由表特别多的时候卡顿会比较明显。
TheRouter 没有路由分组概念,所有路由表都是启动时在异步加载的,对于没有初始化完就发生跳转的行为,是通过挂起的方式延迟跳转操作,在demo
的Application
里面有演示。
from hll-wp-therouter-android.
Related Issues (20)
- com.therouter.plugin.agp8.TheRouterGetAllClassesTask`: invocation of 'Task.project' at execution time is unsupported. HOT 2
- android studio直接导入main分支代码build 报错 HOT 1
- 哈喽 , 问一下怎么兼容ActivityResultLauncher这个API去使用? HOT 1
- Failed to delete some children. This might happen because a process has files open or has its working directory set in the target directory. HOT 3
- 编译异常问题 HOT 6
- apg8.0+ jdk17 gradle 8.2 项目在clean 会报错 HOT 2
- 每次改完代码之后不管clean、rebuild还是运行项目,都会报错一次,再重复一次操作就又好了 HOT 2
- Could not apply requested plugin [id: 'cn.therouter.agp8', version: '1.2.2'] as it does not provide a plugin with id 'cn.therouter.agp8'. This is caused by an incorrect plugin implementation. Please contact the plugin author(s) HOT 2
- 错误:常量字符串过长 HOT 1
- gradle-8.2 Android Studio Hedgehog | 2023.1.1 Patch 2 打包失败 HOT 1
- 添加id "therouter"后报错
- gradlew命令行打包问题 HOT 1
- 为什么跳转页面比较缓慢 HOT 1
- Unable to get provider com.therouter.InnerTheRouterContentProvider HOT 2
- 编译错误,clear project再编译可以解决 HOT 1
- xxx HOT 1
- StartActivityForResult也需要overridePendingTransition HOT 1
- 为什么传递基本类型参数生成代码的时候会报错?传递其它类型就可以,比如String HOT 1
- 求助,编译一直报错 HOT 2
- Android agp8.0 编译速度 HOT 5
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 hll-wp-therouter-android.