Performance Improvement of AsyncTask
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.