Comments (10)
你好,确定下anr的日志,它是队列请求的,不会出现这样的情况的!而且你在子线程处理,怎么会ANR呢?
from multityperecyclerviewadapter.
肯定会的,必现。就好比上一次刷新还没有结束,然后再来一波刷新,所以当快速刷新的时候就GG了,在使用rxjava的时候cpu都是猛增。不过单次数据解析都要300ms.估计是可能跟我们后台的数据结构复杂度有关了
from multityperecyclerviewadapter.
子线程不存在ANR,你把ANR日志发出来,我DEMO里面也有高频率请求,你可以把数据结构改复杂,或者加大数据量,放心测试!
from multityperecyclerviewadapter.
没用的, demo那个也卡啊。不知道你有没有遇到过使用rxjava出现oom,我看你也用了Schedulers.computation()这个,但是实际效果不怎样。因为我之前也遇到过。出现ANR了是cpu使用率居高不下,有空可以给你拍个视频
from multityperecyclerviewadapter.
子线程是不存在anr,这个没问题。但是刚好在要刷新界面的时候,又来一次下拉。如此反复就出现了。我也觉得这结构奇葩,测试过,光把Json字符串解析成对应的bean都得300ms,哎
from multityperecyclerviewadapter.
我QQ387953660,有空就加一下,ANR日志发出来,分析一下!
from multityperecyclerviewadapter.
json解析在子线程就没关系。
from multityperecyclerviewadapter.
无论在哪解析都改变不了要300ms啊,回头加下你
from multityperecyclerviewadapter.
就算是在主线程,300ms也不至于ANR的
from multityperecyclerviewadapter.
确实改变不了,但并不会影响主线程。
from multityperecyclerviewadapter.
Related Issues (13)
- 使用GridLayoutManager再添加HeadView 第一行的spanSize会失效 HOT 3
- 关于分组的实现 HOT 2
- 使用成本较高 HOT 2
- App 那个测试例子用不了吗! HOT 4
- 建议提供一个apk HOT 2
- 某个item中可能有几种布局,可以支持吗? HOT 2
- 看了使用说明书,更使用不来了。用隔壁的了。 HOT 5
- 加油 HOT 7
- 大兄弟里面的单词拼写改一下呗 强迫症啊 HOT 10
- 我想问点击事件如何实现 HOT 1
- 被README和仓库大小吓走了 HOT 1
- 看了圈感觉还有点晕 HOT 15
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 multityperecyclerviewadapter.