Changes

Jump to: navigation, search

Performance/Fenix/Best Practices

439 bytes added, 16:03, 17 August 2021
Avoid blocking on the main thread: Write "good enough" section
== Avoid blocking on the main thread ==
Most performance problems are about the algorithm: does this need to happen right here? IO – disk or network – is one of the longest running tasks performed in common Android applications. A typical IO operation is long enough for the user to perceive it. To avoid slowing down the user for too long, don't do IO on the main thread! StrictMode should warn you if you try to do this (though it's only enabled for start up currently). TODO
== Think carefully before optimizations using background threads ==
Confirm
975
edits

Navigation menu