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

Put invocation to "findFilterItems" into AsyncTask in LogcatActivity.java? #42

Open
yulin2 opened this issue Oct 15, 2014 · 2 comments
Open

Comments

@yulin2
Copy link

yulin2 commented Oct 15, 2014

Hi developers of Catlog,

I'm a Ph.D. student and I'm doing research on improving performance
for Android apps.

In Catlog, "CatlogDBHelper.findFilterItems" accesses database,
so you put the invocation of this method into AsyncTask at line 593 of
LogcatActivity.java ("showFiltersDialog" method) to improve
responsiveness.

But there are two other places in LogcatActivity.java where you still
invoke "CatlogDBHelper.findFilterItems" in UI thread.
"addFiltersToSuggestions" calls "findFilterItems" at line 186 and it's
eventually called by two "onPreExecute" methods at line 1906 and 1290.
"onPreExecute" is executed by UI thread.

Why don't you also put all invocations to "findFilterItems" into background
thread? Is there any specific reason?

Thanks,
Yu

@nolanlawson
Copy link
Owner

Hi Yu,

These all sound like great suggestions, and I would happily welcome a pull request. :)

@yulin2
Copy link
Author

yulin2 commented Oct 15, 2014

I provide a pull request for this case.

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

2 participants