Bug #7165
Performance Improvement of AsyncTask
Status: | New | Start date: | 04/22/2016 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 0% | |
Category: | - | |||
Target version: | - | |||
Component: |
Description
Developers of ChatSecure,
Hello, first thanks for your efforts on ChatSecure.
I have found that ChatSecure has used AsyncTask.execute
in NewChatActivity, MessageView, AccountActivity, AccountAdapter and WelcomeActivity. However, using this method became slower since Android 3.0 as tasks started by this method will be executed serially on a single background thread (explained in API Guide:[[ http://developer.android.com/intl/zh-cn/reference/android/os/AsyncTask.html#execute(Params...)]]) and will slow down your app if multiple AsyncTasks are executed at the same time.
The performance can be improved by using executeOnExecutor to achieve real multi-thread tasks.
Thank you.
Related issues