java - Android 4+ decreased thread cpu time -


in app have expensive computations in background thread written in java. on andrdoid 2.3 (800mhz single core) work fast enough, on android 4+(1.5ghz quad core) becomes terribly slow. in profiler takes same cpu time, ase before. understand happens because of decreased background thread priority.

getthreadgroup().setmaxpriority(thread.max_priority); setpriority(thread.max_priority); 

has no effect.

trace android 2.3. real time ~10sec. thread-108 trace android 2.3. real time ~10sec. thread-108 trace android 4.4. real time ~45sec. thread-1762 trace android 4.4. real time ~45sec. thread-1762

can increase thread cpu-time priority ?


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -