Google Admits Android Lags: App Queue Code Rewritten for Upcoming Version

Google Admits Android Lags: App Queue Code Rewritten for Upcoming Version

Arkadiy Andrienko
Follow-up: Google Teases 'Amazing Things' in Android 17, But Details Are Still Under Wraps

Google engineers have published a technical deep dive into one of the key, yet subtle, changes in the upcoming Android 17. It seems the company has decided to seriously tackle an issue that frustrates even flagship owners—those UI micro-stutters that happen when you're just scrolling through a feed or opening a folder, causing the image to hitch almost imperceptibly.

In the new OS version, they've rewritten a core component called MessageQueue. In simple terms, think of it as a dispatcher that manages which processes get access to memory for rendering the display and when. Previously, this dispatcher worked on a principle of exclusive access: a single-threaded lock on the entire data set. If a background process (like checking app usage) grabbed this lock, and then the OS switched its focus to other tasks, the UI thread would be stuck waiting. The result? Dropped frames and that overall feeling that the system is "hesitating" or feeling sluggish.

Google Admits Android Lags: App Queue Code Rewritten for Upcoming Version

In Android 17, they've abandoned this approach and replaced the single lock with a mechanism called DeliQueue. The name is intentional—engineers draw an analogy with a deli counter ticket system. In a classic queue (like before), the next person can't move forward until the person at the counter finishes their entire transaction. In the new scheme, each new process gets a "ticket" and can go about its business without blocking others. The main thread (the UI thread) then decides the order to process the incoming tasks, but without entering a waiting state.

To speed things up further, engineers have also removed conditional branches in the message comparison code. In classic code, the CPU tries to predict whether to take the 'yes' or 'no' branch; if the prediction is wrong, time is wasted clearing the pipeline. In the new implementation, this is replaced with "unconditional" arithmetic, which in synthetic tests showed a performance increase of up to 500% in high-contention scenarios.

Google Admits Android Lags: App Queue Code Rewritten for Upcoming Version

Regular users don't need to manually activate DeliQueue. It's a system-level optimization enabled by default for all apps targeting Android 17. Developers already have access to testing tools, and the impatient ones can install early system builds on compatible Pixel devices.

What do you think, will this actually solve the fragmentation and lag issues across different devices, or, as usual, is it just "paper promises," and in reality, manufacturers will mess it all up again with their custom skins?

    About the author
    Comments0