Common performance issues on Android?

What are the easiest bugs that can cause performance loss on Android?

The documentation mentions that “some floating point operations” may be “on the order of milliseconds” - did someone check this?

For discussion, suppose it runs on a G1 / similar device.

+5
source share
6 answers

Performance recommendations related to rendering, see these Google I / O 2009 posts:

+1
source

floating point:

G1, 400 . ints 250 .

, eclair (pre-JIT), 120 . (ints , , .) int long, float double, , , , , .

- . ( , , /, , .)

, . , , .

(eclair) . , .


" / Java ?", : . GC, /, , /. GC, , 24MiB . .

+2

, , float, , cpu ( ) . .

, , , .

, java, java . .

0

, , . (ints float, ), , , , . 5% , , .

0

Android, . , Java -

List<String> strings = new ArrayList<String>();

Android ,

ArrayList<String> strings = new ArrayList<String>();
0

, AppInventor 2014 i3/4Gb. , , 10 - , 2000 . , , , .

, , . , - 30 . , .

It is clear that if there is a way to force a fixed point or use integers that would only help, but the scale of the problem that I came across with this tiny project is not a good omen.

0
source

All Articles