Lyft 為司機將 Android 應用程式啟動時間縮短 21%
透過集合功能整理內容
你可以依據偏好儲存及分類內容。

Lyft 致力於追求卓越的應用程式成效。只有一定程度的。共乘應用程式 (每天為數百萬名駕駛和乘客) 提供具時效性的重要服務,如果應用程式速度緩慢或沒有回應,就會造成不便。為了維持服務運作順暢,Lyft 的開發團隊會密切監控應用程式效能。因此,他們發現自家 Android 驅動程式應用程式的啟動時間緩慢。
在優先順序眾多的機構中,每項專案都必須仔細衡量。開發團隊已知道,啟動時間緩慢會對客戶體驗造成影響,但他們想要找出問題點,因此首先必須向資深主管展示問題的規模。這要求提供清楚的業務案例。
做法
Lyft 的開發團隊運用 Android Vitals 發現,Lyft 司機的啟動時間比代僱駕駛服務環境中的類似應用程式慢 15% 到 20%。以便主管向主管提出案件。
仔細分析問題範圍後,他們估計,一位開發人員一個月工作一個月後,應用程式的啟動時間可能會大幅縮短,值得投資的是領導團隊無法拒絕。
在主管的支持下,他們現在必須找出敵人本身。他們檢視了應用程式的啟動程序,並分階段細分。
應用程式順利啟動。UI 算繪作業可正常進行,但在第三階段 (啟動階段,應用程式會連線至網路並要求轉譯主畫面的資料),但遇到瓶頸。
團隊迅速採取行動以解決問題、移除不必要的網路呼叫、將部分作業以非同步的方式執行,以及快取不同工作階段的資料。
成果與學習成果
此外,這些相對簡單的改善措施也大幅縮短了應用程式啟動時間 21%,提升 5% 的司機工作階段量。初始實驗證實,只要投入少量資源提升應用程式品質,就能產生有價值的結果。有鑑於此,Lyft 主管已擴大計畫規模,並致力處理應用程式穩定性等其他挑戰。
如要進一步瞭解 Lyft 如何改善 Lyft Driver Android 應用程式,請閱讀我們的技術個案研究。
關於 Android Vitals 和應用程式在 Google Play 的曝光度
- Google Play 會將應用程式啟動時間視為應用程式品質的關鍵因素。
- Android Vitals 可讓產品擁有者瞭解及追蹤應用程式在實際裝置上的主要指標歷來成效。
- 在 Google Play 管理中心,產品擁有者可以比較自家應用程式與同類別其他應用程式的匯總成效資料,藉此確保應用程式發揮最佳成效。
- Android Vitals 可讓您比較應用程式無回應 (ANR) 發生率、當機率、轉譯效能和應用程式啟動時間等指標。
- 應用程式啟動時間是使用者體驗的重要指標。應用程式在啟動期間緩慢或沒有回應,可能會讓使用者感到困擾或完全失去注意力。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2022-03-10 (世界標準時間)。
[null,null,["上次更新時間: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."]]