Re: [問題] U11安裝程式很慢 - 手機討論

By Olivia
at 2017-06-04T08:37
at 2017-06-04T08:37
Table of Contents
算正常。
為何App更新耗時很久?
首先,原PO說的很久 是真的久 久得像手機秀逗了。遇見的人都會TMD幹,秒下的更新檔也能搞個過一分鐘。
不過這不是戲說台灣 也不是下列的安裝過程本身:-
5.0前的dalvik bytecode生成 耗時中等;
5.0+的ART native 原生碼 耗時長;
7.0的ART native+bytecode混合 耗時短。
只生成main()與核心部分,其餘部分靠記錄你使用頻率後充電時補上。
這款慢,究因是Google去年12月搞出來的File-by-File patching。
當初說只發給晚上睡覺充電中運行自動更新的手機。 但前幾個月就出現一些手機手動更新時,估計又在玩AB test。順道收集一些實際部署資料做analytics,若遇見它哪怕是Pixel也一樣喊倒霉。
Google從2012年起啟用打補丁方式節省APK更新的傳輸量, 簡單說就是拿一個app新版本與舊版本(你手機上的版本)比對並找出差異(delta),只傳輸給你差異部分,再由你手機上既有APK和新取得delta拼湊成新APK後安裝。
Google去年7月左右先推出相比下效率比之前使用的演算法更優秀47%的bsdiff。
12月進一步推出File-by-File patching。它的優點是平均能省上65趴左右的更新檔大小,有些範本更達到95趴。缺點是耗時耗運算。
下完後要先解壓手機上的既有APK(zip檔),再拿更新檔送來的bsdiff算出的個別文件delta針對有改動過的文件打補丁,壓縮回APK,再跑hash驗證。據Google說這過程[15年後手機]是以每秒1MB的速度在運行的。他們分析得出更新檔傳輸量減半,打補丁耗時則增一倍。
這就是更新檔下載完後為何會卡在100%許久的原因。其實你是被挑中的幸運兒,有幸參與實驗。
重點是每天能幫用戶省6 PetaBytes (也幫Google自己稍稍減負擔)。
畢竟要應付20億人數的Android每月活躍用戶, Google相簿每天新增12億張新照片。
--
為何App更新耗時很久?
首先,原PO說的很久 是真的久 久得像手機秀逗了。遇見的人都會TMD幹,秒下的更新檔也能搞個過一分鐘。
不過這不是戲說台灣 也不是下列的安裝過程本身:-
5.0前的dalvik bytecode生成 耗時中等;
5.0+的ART native 原生碼 耗時長;
7.0的ART native+bytecode混合 耗時短。
只生成main()與核心部分,其餘部分靠記錄你使用頻率後充電時補上。
這款慢,究因是Google去年12月搞出來的File-by-File patching。
當初說只發給晚上睡覺充電中運行自動更新的手機。 但前幾個月就出現一些手機手動更新時,估計又在玩AB test。順道收集一些實際部署資料做analytics,若遇見它哪怕是Pixel也一樣喊倒霉。
Google從2012年起啟用打補丁方式節省APK更新的傳輸量, 簡單說就是拿一個app新版本與舊版本(你手機上的版本)比對並找出差異(delta),只傳輸給你差異部分,再由你手機上既有APK和新取得delta拼湊成新APK後安裝。
Google去年7月左右先推出相比下效率比之前使用的演算法更優秀47%的bsdiff。
12月進一步推出File-by-File patching。它的優點是平均能省上65趴左右的更新檔大小,有些範本更達到95趴。缺點是耗時耗運算。
下完後要先解壓手機上的既有APK(zip檔),再拿更新檔送來的bsdiff算出的個別文件delta針對有改動過的文件打補丁,壓縮回APK,再跑hash驗證。據Google說這過程[15年後手機]是以每秒1MB的速度在運行的。他們分析得出更新檔傳輸量減半,打補丁耗時則增一倍。
這就是更新檔下載完後為何會卡在100%許久的原因。其實你是被挑中的幸運兒,有幸參與實驗。
重點是每天能幫用戶省6 PetaBytes (也幫Google自己稍稍減負擔)。
畢竟要應付20億人數的Android每月活躍用戶, Google相簿每天新增12億張新照片。
--
Tags:
手機
All Comments

By Charlie
at 2017-06-06T02:44
at 2017-06-06T02:44

By Victoria
at 2017-06-07T20:50
at 2017-06-07T20:50

By Poppy
at 2017-06-09T14:56
at 2017-06-09T14:56

By Madame
at 2017-06-11T09:03
at 2017-06-11T09:03

By Victoria
at 2017-06-13T03:09
at 2017-06-13T03:09

By Andy
at 2017-06-14T21:16
at 2017-06-14T21:16

By Ingrid
at 2017-06-16T15:22
at 2017-06-16T15:22

By John
at 2017-06-18T09:28
at 2017-06-18T09:28

By Sandy
at 2017-06-20T03:35
at 2017-06-20T03:35

By Edward Lewis
at 2017-06-21T21:41
at 2017-06-21T21:41

By Jacky
at 2017-06-23T15:48
at 2017-06-23T15:48

By Carolina Franco
at 2017-06-25T09:54
at 2017-06-25T09:54

By Andy
at 2017-06-27T04:00
at 2017-06-27T04:00

By Hedy
at 2017-06-28T22:07
at 2017-06-28T22:07

By Genevieve
at 2017-06-30T16:13
at 2017-06-30T16:13

By Ophelia
at 2017-07-02T10:20
at 2017-07-02T10:20

By Tristan Cohan
at 2017-07-04T04:26
at 2017-07-04T04:26

By Daniel
at 2017-07-05T22:32
at 2017-07-05T22:32

By Frederica
at 2017-07-07T16:39
at 2017-07-07T16:39

By Ina
at 2017-07-09T10:45
at 2017-07-09T10:45

By Jake
at 2017-07-11T04:52
at 2017-07-11T04:52

By Michael
at 2017-07-12T22:58
at 2017-07-12T22:58

By Thomas
at 2017-07-14T17:04
at 2017-07-14T17:04

By Robert
at 2017-07-16T11:11
at 2017-07-16T11:11

By Robert
at 2017-07-18T05:17
at 2017-07-18T05:17

By Doris
at 2017-07-19T23:24
at 2017-07-19T23:24

By Mary
at 2017-07-21T17:30
at 2017-07-21T17:30

By Odelette
at 2017-07-23T11:36
at 2017-07-23T11:36

By Faithe
at 2017-07-25T05:43
at 2017-07-25T05:43

By Regina
at 2017-07-26T23:49
at 2017-07-26T23:49

By Andy
at 2017-07-28T17:56
at 2017-07-28T17:56

By Irma
at 2017-07-30T12:02
at 2017-07-30T12:02

By Sierra Rose
at 2017-08-01T06:08
at 2017-08-01T06:08

By Zanna
at 2017-08-03T00:15
at 2017-08-03T00:15

By Robert
at 2017-08-04T18:21
at 2017-08-04T18:21

By Ida
at 2017-08-06T12:28
at 2017-08-06T12:28

By Emma
at 2017-08-08T06:34
at 2017-08-08T06:34

By Rebecca
at 2017-08-10T00:40
at 2017-08-10T00:40

By Heather
at 2017-08-11T18:47
at 2017-08-11T18:47

By Anthony
at 2017-08-13T12:53
at 2017-08-13T12:53

By Catherine
at 2017-08-15T07:00
at 2017-08-15T07:00

By Hardy
at 2017-08-17T01:06
at 2017-08-17T01:06

By Erin
at 2017-08-18T19:12
at 2017-08-18T19:12

By Jack
at 2017-08-20T13:19
at 2017-08-20T13:19

By Eden
at 2017-08-22T07:25
at 2017-08-22T07:25

By Hedwig
at 2017-08-24T01:32
at 2017-08-24T01:32

By Donna
at 2017-08-25T19:38
at 2017-08-25T19:38

By Skylar Davis
at 2017-08-27T13:44
at 2017-08-27T13:44

By Bethany
at 2017-08-29T07:51
at 2017-08-29T07:51

By Kelly
at 2017-08-31T01:57
at 2017-08-31T01:57

By Erin
at 2017-09-01T20:04
at 2017-09-01T20:04

By Mia
at 2017-09-03T14:10
at 2017-09-03T14:10

By Frederic
at 2017-09-05T08:16
at 2017-09-05T08:16

By Zenobia
at 2017-09-07T02:23
at 2017-09-07T02:23
Related Posts
地標網站的攜碼折扣價隱藏了?

By Yedda
at 2017-06-04T08:33
at 2017-06-04T08:33
請問這可以買嗎?

By Frederic
at 2017-06-04T07:52
at 2017-06-04T07:52
Sony XZ Premium vs HTC U11 Speed Test!

By Ida
at 2017-06-04T05:23
at 2017-06-04T05:23
旗艦照相手機對決U11/S8+/iPhone7+/S7

By Michael
at 2017-06-04T04:19
at 2017-06-04T04:19
U11和完美10的比較

By Irma
at 2017-06-04T02:11
at 2017-06-04T02:11