Join GitHub today
potential improvement for responsiveness in k9mail #450
Hello developers of K-9 mail,
I'm a Ph.D. student and I'm doing research related to Android apps'
For example, in AttachmentView.java, line 174 "getPreviewIcon()"
Also, in MessageCompose.java, "actionCompose" method at line 412
Similarly, MessageViewFragment.java invokes
There should be some other places that can be improved. I can't report
@yulin2: Thanks for looking into ways on how to improve K-9 Mail!
Generally, you're right that we should perform operations that access the storage only in the background. However, just extracting those operations without considering the whole component lifecycle will rarely lead to the desired results.
About the format of the patch: You should put unrelated changes in separate commits. That way it's easier to review the changes and to pick only some of them.
I took the liberty of modifying your commit to only contain the unproblematic change: