codeestX / GeekNews

:books:A pure reading App based on Material Design + MVP + RxJava2 + Retrofit + Dagger2 + Realm + Glide
3.49k stars 826 forks source link

Performance improvement suggestion #146

Open cataloque opened 4 years ago

cataloque commented 4 years ago

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.