MGMLaboratory
Back

Menu

01Home
02About Us
03Projects
04Publications
05Member
06Articles
07Contact

Let's Talk

Open in Mail app

Socials

Malang (ID) --:--Privacy PolicyTerms of Service

October 24, 20231 min read

Design Patterns Are Also a Performance DecisionDesign Patterns Are Also a Performance Decision

Architecture choices usually get argued as matters of taste. On Android, one of them was measured.

  • Conference
  • Publications

Written by

  • SRShirasaka RenIT & Infrastructure · Student Member

In this article

  1. 01Why data binding pays off
  2. 02What to take from it

The usual case for design patterns is maintainability. Cleaner separation, easier testing, fewer surprises six months later. A 2023 study on Android interface rendering adds a second ledger to that argument, and it is one teams rarely check.

Where the pattern choice gets made. Image: Google LLC, CC BY 2.5, via Wikimedia Commons.
Fig. 01Where the pattern choice gets made. Image: Google LLC, CC BY 2.5, via Wikimedia Commons.

The team built one Android route navigation app twice, once with MVC and once with MVVM, then timed how long each version took to put its interface on screen. MVVM came out ahead. The reason is mechanical rather than mysterious.

01/02

Why data binding pays off

In MVC, the controller has to tell the view to refresh after data arrives. That is an extra hop, and the user waits through it. MVVM binds the view to the data, so the screen redraws itself when the data lands.

  • MVC keeps interface and logic apart, but refresh stays manual.
  • MVVM keeps the same separation and makes refresh automatic.
  • That saved step shows up as rendering time.
Rendering time is what the user feels. Image: Acabashi, CC BY-SA 4.0, via Wikimedia Commons.
Fig. 02Rendering time is what the user feels. Image: Acabashi, CC BY-SA 4.0, via Wikimedia Commons.

02/02

What to take from it

The study is one comparison, not a verdict. MVVM carries its own costs, including more indirection and a steeper learning curve, and the paper does not claim it wins everywhere. Its claim is narrower and more useful: the pattern is a variable that affects performance, so it should be measured rather than assumed.

That has a practical consequence for how teams benchmark. Fast devices hide rendering delays that mid-range hardware exposes. If you want to know whether your architecture is costing you, test on the phones your users actually carry, running the scenarios they actually run.

Source

  1. Paramadani, Akbar, and Pinandito (2023). User Interface Rendering Time in Android Applications: Revealing the Effects of Design Patterns. Proceedings of the 8th International Conference on Sustainable Information Engineering and Technology.

    DOI10.1145/3626641.3626948 (opens in a new tab)

Next articleWhat Platform Choice Costs an Accounting Team(Keep scrolling)(Read it next)(Loading)