How a single Android developer improved Lyft’s Drivers app startup time by 21% in one month

0/5 No votes

Report this app


Posted by Mauricio Vergara, Product Advertising Supervisor, with contibutions by Thousand Ant.


Lyft is singularly dedicated to app excellence. As a rideshare firm — offering a significant, time-sensitive service to tens of hundreds of thousands of riders and tons of of hundreds of drivers — they need to be. At that scale, each slowdown, frozen body, or crash of their app can waste hundreds of customers’ time. Even a minor hiccup can imply a flood of individuals using with (or driving for) the competitors. Fortunately, Lyft’s growth staff retains an in depth eye on their app’s efficiency. That’s how they first observed a slowdown within the startup time of their drivers’ Android app.

They wanted to unravel the issue shortly — work out what it will take to resolve after which justify such an funding to their management. That meant answering a quantity of robust questions. The place was the bottleneck? How was it affecting consumer expertise? How nice a precedence ought to it’s for his or her staff at that second? Fortunately, they’d a strong device at their disposal that might assist them discover solutions. With the assistance of Android vitals, a Google Play device for enhancing app stability and efficiency on Android units, they situated the issue, made a case for prioritizing it to their management, and devoted the correct amount of sources to fixing it. Right here’s how they did it.

New priorities

The very first thing Lyft’s growth staff wanted to do was work out whether or not this was a urgent sufficient downside to persuade their management to dedicate sources to it. Like all proposal to enhance app high quality, dashing up Lyft Driver’s start-up time needed to be weighed out towards different competing calls for on developer bandwidth: introducing new product options, making architectural enhancements, and enhancing knowledge science. Typically, one of many challenges to convincing management to put money into app high quality is that it may be tough to correlate efficiency enhancements with enterprise metrics.

They turned to Android vitals to get a precise image of what was at stake. Vitals offers builders entry to knowledge concerning the efficiency of their app, together with app-not-responding errors, battery drainage, rendering, and app startup time. The present and historic efficiency of every metric is tracked on actual units and will be in comparison with the efficiency of different apps within the class. With the assistance of this highly effective device, the event staff found that the Lyft Driver app startup time was 15–20% slower than 10 different apps of their class — a urgent subject.

Subsequent, the staff wanted to determine the proper scope for the mission, one that might be commensurate with the slowdown’s influence on enterprise targets and consumer expertise. The info from Android vitals made the case clear, particularly as a result of it offered a direct comparability to rivals within the rideshare house. The event staff estimated {that a} single developer engaged on the issue for one month could be sufficient to make a measurable enchancment to app startup time.

Drawing on this wealth of information, and interesting to Lyft’s dedication to app excellence, the staff made the case to their management. Demonstrating a transparent alternative to enhance buyer expertise, a fairly scoped and achievable objective, and clear-cut aggressive intelligence, they obtained the go-ahead.

How They Did It

Lyft makes use of “Time to work together” as a major startup metric (often known as Time to full show). To grasp the components that influence it, the Lyft staff profiled every of their app’s launch levels, on the lookout for the deadlock. The Lyft Driver app begins up in 4 levels: 1) First, begin the appliance course of 2) “Exercise” kicks off the UI rendering. 3) “Bootstrap” sends community requests for the info essential to render the house display. 4) Lastly, “Show” opens the driving force’s interface. Rigorous profiling revealed that the slowdown occurred within the third, bootstrapping, part. With the bottleneck recognized, the staff took a number of steps to resolve it.

Lyft time to interact 

First, they diminished unneeded community calls on the essential launch path. After decomposing their backend providers, they may safely take away some community calls within the launch path solely. When potential, in addition they selected to execute community calls asynchronously. If some knowledge was nonetheless required for the appliance to perform, however was not wanted throughout app launch, these calls have been made non-blocking to permit the launch to proceed with out them. Blocking community calls have been in a position to be safely moved to the background. Lastly, they selected to cache knowledge between periods.

21% faster startup 5% more driver sessions 

These could sound like comparatively small modifications, however they resulted in a dramatic 21% discount in app startup time. This led to a 5% improve in driver periods in Lyft Driver. With the ends in hand, the staff had sufficient buy-in from management to create a devoted cellular efficiency workstream and add an engineer to the trouble as they continued to make enhancements. The success of the initiative caught on throughout the group, with a number of managers reaching out to discover how they may make additional investments in app high quality.


The success of those efforts comprises a number of broader classes, relevant to any group.

As an app grows and the staff grows with it, app excellence turns into extra essential than ever. Builders are sometimes the primary to acknowledge efficiency points as they work carefully on an app, however can discover it tough to boost consciousness throughout a whole group. Android vitals provides a strong device to do that. It gives an easy solution to again up developer observations with knowledge, making it simpler to sq. efficiency metrics with enterprise instances.

When beginning your personal app excellence initiative, it pays to first purpose for small wins and construct from there. Rigorously decide actionable initiatives, which ship vital outcomes by means of an applicable useful resource funding.

It’s additionally essential to speak early and infrequently to contain the remainder of the group within the growth staff’s high quality efforts. These fixed updates about targets, plans, and outcomes will show you how to hold your complete staff on board.

Additional Assets

Android vitals is simply one of many many instruments within the Android ecosystem designed to assist perceive and enhance app startup time and general efficiency. One other complementary device, Jetpack Macrobenchmark, may help present intelligence throughout growth and testing on quite a lot of metrics. In distinction to Android vitals, which gives knowledge from actual customers’ units, Macrobenchmark permits you to benchmark and check particular areas of your code domestically, together with app startup time.

The Jetpack App startup library gives an easy, performant solution to initialize elements at utility startup. Builders can use this library to streamline startup sequences and explicitly set the order of initialization. In the meantime, Attain and units may help you perceive your consumer and subject distribution to make higher choices about which specs to construct for, the place to launch, and what to check. The info from the device permits your staff to prioritize high quality efforts and decide the place enhancements can have the best influence for essentially the most customers. Perfetto is one other invaluable asset: an open-source system tracing device which you should utilize to instrument your code and diagnose startup issues. In live performance, these instruments may help you retain your app operating easily, your customers completely satisfied, and your complete group supportive of your high quality efforts.

Should you’re enthusiastic about getting your personal staff on board for the pursuit of App Excellence (or be a part of Lyft), take a look at our condensed case research for product homeowners and executives linked right here.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.