While developing our application, it's often easy to overlook the performance of the application on a physical device for several reasons. One may be testing a lot of functionality in a desktop browser such as Google Chrome or Safari, especially while making quick iterations. For plugin testing, the developer may elect to use an emulator most of the time, especially if they need to quickly test across multiple platforms. As useful as this strategy is, it fails in one key area: it tells us nothing about the performance of our app on a real device.
In this chapter, we'll cover the following topics:
Defining performance
The performance difference between desktops, emulators, and physical devices
Profiling your app
Correcting input lag
Correcting visual stutters
Correcting memory problems
Splitting up and delegating long computations