Performance

When we refer to the performance of a mobile application, especially one that is not written in the native language, what we are most often talking about is framerate. It is generally accepted that the human eye can process up to 60 still frames per second (fps). When a series of images is displayed at or above this upper limit, we perceive it as motion instead of discreet images. With this in mind, our goal when optimizing the performance of an application is to ensure that the framerate never or rarely dips below 60 fps.

The practical implications of this requirement are that any blocking computation must complete within 16.67 milliseconds (1,000 milliseconds per 60 fps). Whenever we do something computationally expensive, for instance, ...

Get Mastering React Native now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.