Lyft 将 Android 应用启动时间缩短了 21%
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。

Lyft 致力于打造卓越应用。必须如此。对于每天为数百万司机和乘客提供重要且具有时效性的服务,拼车应用运行缓慢或无响应会带来不可接受的阻碍。为确保一切顺利运行,Lyft 的开发团队会密切关注应用性能。因此,他们注意到其 Android 驱动程序应用的启动时间较长。
在一个具有许多紧急优先事项的组织中,必须仔细权衡每个项目。开发团队知道启动时间过长影响了客户的体验,但是如果他们想要采取相应的措施,他们需要先向高层领导展示问题的严重性。这就需要给出明确的业务用例。
他们采取的措施
使用 Android Vitals,Lyft 的开发团队发现 Lyft Driver 的启动时间比拼车领域的同类应用慢 15–20%。他们需要这样才能向领导层说明真相。
在列出问题的程度后,他们估计如果一名开发者只要工作一个月,就能显著缩短该应用的启动时间,这是值得他们的领导层拒绝的。
在领导层的支持下,他们现在需要找到僵局本身。他们查看了该应用的启动过程,并将其细分为几个阶段。
应用启动顺畅;界面渲染按预期继续进行;但在第三个阶段(引导阶段,即应用连接到网络并请求数据以呈现主屏幕)时发现了瓶颈。
该团队迅速着手解决此问题,移除了不必要的网络调用,移动了一些调用以异步执行,并在会话之间缓存数据。
成果和经验
这些相对简单的改进使应用启动时间平均显著缩短了 21%,驾驶工作量增加了 5%。初步实验证明,对打造卓越应用稍加投入,就能产生宝贵的成果。有鉴于此,Lyft 领导层扩展了这项计划,并承诺应对包括应用稳定性在内的其他挑战。
如需详细了解 Lyft 如何改进 Lyft Driver Android 应用,请阅读我们的技术案例研究。
关于 Google Play 中的 Android Vitals 和应用曝光度
- Google Play 将应用启动时间视为应用质量的关键决定因素。
- 借助 Android Vitals,产品所有者可以了解和跟踪其应用在真实设备上的关键指标的历史表现。
- 在 Google Play 管理中心内,产品所有者可以将汇总的效果数据与同类别的其他应用进行比较,从而确保应用品质一流。
- 利用 Android Vitals,您可以比较各种指标,包括应用无响应 (ANR) 率、崩溃率、呈现性能和应用启动时间等等。
- 应用启动时间是衡量用户体验的一项重要指标。如果应用在启动过程中运行缓慢或无响应,可能会令用户感到沮丧或完全失去注意力。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2022-03-10。
[null,null,["最后更新时间 (UTC):2022-03-10。"],[],[],null,["# Lyft improves Android app startup time for drivers by 21%\n\n[Lyft](https://www.lyft.com/) is committed to app excellence. They have to be. For a rideshare app --- providing a vital, time-sensitive service to millions of drivers and riders every day --- a slow or unresponsive app adds unacceptable friction. To keep things running smoothly, Lyft's development team keeps a close eye on app performance. That's how they noticed that their Android driver app had a slow startup time.\n\nIn an organization with so many time-sensitive priorities, every project has to be weighed out carefully. The development team knew that slow start-up time was affecting their customers' experience, but, if they wanted to do something about it, they first needed to demonstrate the extent of the problem to senior leadership. This required making a clear business case.\n\nWhat They Did\n-------------\n\nUsing [Android vitals](https://play.google.com/console/about/vitals/), Lyft's development team discovered that Lyft Driver's startup time was 15--20% slower than comparable applications in the ridesharing space. This is what they needed to make a case to their leadership.\n\nHaving tabulated the extent of the problem, they estimated that one single developer working for one month could make significant improvements to the app's startup time --- a worthwhile investment that their leadership couldn't refuse.\n\nWith support from leadership, they now needed to locate the impasse itself. They reviewed the app's startup process and broke it down into phases. \n\nThe app started smoothly; UI rendering proceeded as expected; but then, in the third phase --- the bootstrapping phase, where the app connects to the network and requests data to render the home screen --- they found the bottleneck.\n\nThe team moved quickly to resolve it, removing unnecessary network calls, moving some to execute asynchronously, and caching data between sessions.\n\nResults and Learnings\n---------------------\n\nThese relatively simple improvements led to a dramatic 21% average reduction in app startup time and a 5% increase in driver sessions. The initial experiment proved that a modest investment in app excellence could yield valuable results. Seeing this, Lyft leadership has expanded the initiative and have commited to address other challenges including app stability. \n\nTo read more technical details about how Lyft improved the Lyft Driver Android app, read our technical case study.\n\nAbout Android Vitals and App Discoverability in Google Play\n-----------------------------------------------------------\n\n- Google Play considers app startup time a key determinant of app quality.\n- Android vitals allows product owners to understand and track historical performance of key metrics for their apps on real devices.\n- In the Google Play Console, product owners can ensure their app is best in class by comparing aggregated performance data against other apps in their category.\n- Android vitals allows you to compare metrics including: app-not-responding (ANR) rates, crash rates, rendering performance, and app startup time, among others.\n- App startup time is an important metric of user experience. An app which is slow or unresponsive during startup may frustrate users or lose their attention altogether."]]