In a technical description published in March 2016, the Facebook Lite team had a particular benchmark in mind. The LG Optimus ME was a modest phone that needed to work on slow, unreliable networks. The team reported an APK under 1 MB. That number tells part of the story. Between tapping the icon and being able to do something, the device incurs other costs.

An app with a small download can take up a lot of space once it starts storing images. It can use little memory while displaying a static screen and become more demanding when several lists open. The meaning of lightweight depends on when we ask.

The server was part of the app

The Lite client received a compressed description of the screen from the server and displayed it on the device. The connection could send data as they became available. The team described compression with a dictionary shared during the session and the batching of requests. Shifting some work to the server helped limit the processing required by the phone.

Images and animation can consume data, decoding time and time spent composing the screen. Choosing the useful resolution and loading lists in pieces reduces how much the device has to keep ready. Sending only changes can save data during synchronisation if both sides agree on the starting version. Each technique addresses a different cost.

Sources in this section 12

The scale measures different things

On Android, R8 can remove unreachable code and optimise parts of a programme. Baseline Profiles identify paths to prepare for more efficient execution. Macrobenchmark measures user interactions such as start-up under defined conditions. Apple’s documentation also distinguishes start-up work from work that can wait until the first interaction.

A useful assessment measures download and installation bytes, memory in use, time to the first useful action, mobile data and battery use on a representative journey. Use the device and network that matter, identify conditions such as a cold start and repeat the test. A compressed photograph can save data and cost more processing when opened. Measure both.

What to measure to understand the experience on a low-cost device.
MeasurementQuestion
Installer and storageHow much must be downloaded, and how much space does the app take after use?
Memory and processingWhat do common actions demand on a device with little RAM?
Start-up and battery lifeWhen is the first useful action available, and what does it cost in battery life?
Network and offline useWhat data move, and which tasks survive the loss of the connection?

Sources in this section 3456

What is worth carrying in your pocket

The choice changes when a task has to survive an internet outage. For a resilient communications project such as ScopeLink, writing and saving locally, checking an operation’s state and recovering a pending operation are goals to test on the device. Automatically asking the server before the first action is available runs counter to that goal.

A genuinely inclusive lightweight app makes a useful task fit the memory, battery and connection people have. The same test should also count the times when a person gets stuck.

Sources in this section 127

Sources and references

  1. Meta Engineering · Facebook Lite and its architecture, as described in 2016
  2. Android Developers · Android Go
  3. Android Developers · R8 and app optimisation
  4. Android Developers · Baseline Profiles
  5. Android Developers · Macrobenchmark
  6. Apple Developer · Measuring and reducing launch time
  7. Android Developers · Offline-first app architecture

Sources reviewed on .