This is the slides for my presentation (optimizinzg application performance) at DevFestSW event held in ibadan 2017. it is focused on Battery, Layout and Responsive optimizations.
• 30%Users • Every 1 in 5 Users Expects mobile page to load instantly Expects mobile page to load in 2+sec Expects App load in 20+ sec Expects mobile page to load in 3+ sec
fails to perform satisfactorily It hurts the brand image The users start uninstalling the app Ratings start dropping Potential sales and ad revenues disappear And finally…….. Developer gets FIRED!! Consequences Optimizing Applications Performance
sizes and boundaries of View objects. Layout stage - Uses this data, also taking object weights into account, to appropriately position the relevant items in your view hierarchy It determines where on the screen to position the View objects. Rendering flow……
if an application cannot respond to user input event (such as key press or screen touch events) within 5 seconds. A BroadcastReciever hasn't finished executing within 10 seconds. Causes
do as little work as possible. Network or database operations should be done on a different thread (worker thread) or via asynchronous requests. Computational calculations like resizing bitmaps, should be done in the worker thread. Avoiding ANR Dialog