Skip to Content
High Performance Android Apps
book

High Performance Android Apps

by Doug Sillars
October 2015
Intermediate to advanced
262 pages
6h 36m
English
O'Reilly Media, Inc.
Content preview from High Performance Android Apps

Chapter 6. CPU and CPU Performance

In the preceding chapters, we’ve looked at battery, UI, and memory management performance, and how optimizing the way these function will reduce crashes and speed up the performance of your app. As we continue our journey to high performance Android apps in this chapter, we’ll cover an essential part of the Android device, the CPU. The CPU is the brain of the device, and because the CPU processes all of your code to create your app, it is another vital piece of the puzzle to optimize.

In fact, chipset vendors work constantly to improve the performance of their chips, while taking into account battery drain and heat concerns. Modern Android devices have shown great performance strides in speed while also ensuring efficiency.

In the last few years, quad, octo, and deca core CPUs are becoming more common in the market. Unlike your computer (where every CPU is the same, and can be interchanged for any computation), these ARM-based mobile chipsets feature different CPUs for different tasks. ARM calls this chipset design big.LITTLE, and it is a good descriptor for how they work. When a small background task is run (like checking email), a lower-powered, more efficient CPU will be tasked with the job. When users watch videos or play games, the high performance cores are fired up. By relegating small tasks to the LITTLE processors, and only using the big CPUs for high-power tasks, the device saves energy. The great thing as a developer is that this is ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Android High Performance Programming

Android High Performance Programming

Enrique López Mañas, Diego Grancini

Publisher Resources

ISBN: 9781491913994Errata Page