What is my phone actually doing when it says optimising apps after an update Technology
Every big system update it sits there saying it is optimising, counts up through a few hundred apps, and takes fifteen or twenty minutes. Then the battery drains noticeably faster for a day. I have read that you should not interrupt it, but nobody says what it is doing. Is it scanning them, repairing them, uploading something? It feels like the phone is doing homework and will not say what the subject is.
@rack_unit_12 · 11mo ago · 3 replies
It is translating your apps into a form your specific phone can run fast, and it has to redo it because the update changed the thing it translates against.
Apps are shipped in a portable intermediate form so that one download works on many different phones. Running that form directly is slower, so at install time the phone compiles it into native machine code for its own processor and stores the result. That compiled copy is what actually runs when you tap the icon.
When the system updates, the runtime libraries underneath change, so every one of those stored copies is stale and potentially invalid. Rather than have every app be slow the first time you open it, the phone does the whole batch up front. That is the counter you are watching.
Nothing is being scanned for problems, nothing is being deleted, nothing is going anywhere off the device. It is a build job. The reason you should not interrupt it is simply that it is doing heavy work and yanking power mid write is a bad idea, not because something delicate is being repaired.
The battery drain afterwards is the same story continuing. Caches and search indexes get rebuilt in the background over the following day, and then it settles.
Reply
Report
@secondhandamps · 11mo ago
That also explains why the phone feels sluggish if I skip it and start using it immediately. Nothing is broken, it is just compiling on demand while I use it.
Reply
Report
@crypt_cass · 11mo ago
The everyday version: it is translating a book into your language once and keeping the translation, instead of translating each page every time you read it.
Reply
Report