-
Notifications
You must be signed in to change notification settings - Fork 347
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
Performance Issues #22
Comments
There are some performance problems in low-end devices, but 20 columns and 10 rows in my nexus5 is also have a good performance.What kind of mobile phone do you use to test? |
Thanks for your answer! In the meantime I have solved the issues. It works now much more fluent on smartphones AND tablets. In initWidget() I added the following settings for each RecyclerView:
In my case I could also add:
Then there were to many calls to the onScrollListeners. To reduce that I added the following lines: For the horizontal listener (to avoid vertical handling):
... and at the end of the method:
for the vertical listener (to avoid horizontal handling):
Hope that helps! I'll send you an eMail with some off-topic questions concerning my app! Thanks! |
性能确实有问题, 20行20列 还好 一但大几十行和列 就卡得不行, 检测内存看到快满了。 是不是单元格一直新建,没有替换。 导致我有多少行列就创相应的单元格呢? |
@dysen2014 对于上面Appilog说的给ExcelPanel里面的每个RecyclerView使用下面的代码
这个时候就可能导致大量的view缓存,内存立马就会爆炸,出现ANR |
@dysen2014
So I try the codes like you do, but I found memory is increasing rapidly. Monitors show the datas below: And here is the datas before configing: I guess that this may have a good performance when the data in some scale. But there are may have some issues(e.g. ARN or crash) when you reach the threshold. |
这里的 data 能不能用recyclerview 来做? 数据item用recyclerview替换textview?
Sent from Windows Mail
From: zhouchaoyuan<mailto:notifications@github.com>
Sent: Friday, July 7, 2017 5:57 PM
To: zhouchaoyuan/excelPanel<mailto:excelPanel@noreply.github.com>
Cc: dysen<mailto:dysen@outlook.com>, Mention<mailto:mention@noreply.github.com>
@dysen2014<https://github.com/dysen2014>
I'm very glad to hear that you have solved the issues mentioned above using the settings below:
.setDrawingCacheEnabled(true);
.setItemViewCacheSize(itemViewCacheSize);
.setDrawingCacheQuality(View.DRAWING_CACHE_QUALITY_HIGH);
So I try the codes like you do, but I found memory is increasing rapidly.
Monitors show the datas below:
[image]<https://user-images.githubusercontent.com/7615900/27953091-21be35ca-633d-11e7-9049-198dee4327ab.png>
And here is the datas before configing:
[image]<https://user-images.githubusercontent.com/7615900/27952633-951409a2-633b-11e7-93fa-e37877fd8c28.png>
I guess that this may have a good performance when the data in some scale. But there are may have some issues(e.g. ARN or crash) when you reach the threshold.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#22 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AMKvxYtQcenj6nuhJon2cNNxGQvKltz8ks5sLgEMgaJpZM4OD8EZ>.
|
Hello,
first, thank you very much for sharing your work here!
I have some serious performance problems on tablets where there are e.g. 20 columns and 10 rows.
Is this normal? Do other users also have this issue?
Is there something I can do about, or is it a principal problem with the large number of RecyclerViews?
Thanks!
The text was updated successfully, but these errors were encountered: