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 4.4. real time ~45sec. thread-1762 
can increase thread cpu-time priority ?
Comments
Post a Comment