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

Performance improvement suggestion #146

Open
cataloque opened this issue Feb 26, 2020 · 0 comments
Open

Performance improvement suggestion #146

cataloque opened this issue Feb 26, 2020 · 0 comments

Comments

@cataloque
Copy link

Dear developers,
I am analyzing GeekNews using static analysis. I found some potential slow operations of bitmap displaying in GeekNews: "BitmapFactory.decodeByteArray" method was used in create Bitmap ,but Android documentation says" The BitmapFactory.decode* methods should not be executed on the main UI thread if the source data is read from disk or a network location (or really any source other than memory)."
for performance considerations, it is better to move these operations to worker threads (e.g., via AsyncTask).

thanks.

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