Lucid-Browser icon indicating copy to clipboard operation
Lucid-Browser copied to clipboard

Performance enhancement

Open kangyu opened this issue 10 years ago • 0 comments

We are working on a project called PersisDroid (http://www.cudroid.com/PersisDroid/) for detecting potential performance issues. Our tool could find performance degradation caused by improper usage of asynchronous executions. We find that in some cases your app may suffer a long processing delay.

Case: Related source code Class: MainActivity function: onTextChanged Circumstance The searching is laggy when the searching frequency is high in Android 4.2 devices. Problem findAll is a deprecated function of WebView lib. Before Android 4.4 the classic webkit lib is utilized for WebView class. The findAll method blocks its corresponding thread until finished. Suggested modification Use findAllAsync function as a replacement.

kangyu avatar Jun 21 '15 07:06 kangyu