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, 20232 min read

MVVM Renders Faster Than MVC in Android AppsMVVM Renders Faster Than MVC in Android Apps

Two design patterns, one app, the same data. One of them put interface elements on screen faster.

  • Conference
  • Publications

Written by

  • SRShirasaka RenIT & Infrastructure · Student Member

In this article

  1. 01Keeping the comparison honest
  2. 02What rendering time means in practice

Design patterns usually get discussed as a matter of code hygiene. Cleaner structure, easier testing, fewer surprises later. A study from Universitas Brawijaya adds a harder number to that conversation. The pattern you pick also changes how quickly your interface appears on screen.

An Android development environment. Image: Google LLC, CC BY 2.5, via Wikimedia Commons.
Fig. 01An Android development environment. Image: Google LLC, CC BY 2.5, via Wikimedia Commons.

The team built the same Android application twice, once with MVC and once with MVVM, and measured how long each version took to render its interface. The app was a public transport route navigation tool for Malang, drawing routes from a starting point to a destination using latitude and longitude coordinates.

01/02

Keeping the comparison honest

Both versions were tested under identical conditions: the same testing technique, the same three scenarios, and the same point data. That matters, because rendering time is easy to skew if one build is asked to draw more than the other.

  • MVC and MVVM share one core idea: separating the interface layer from the business logic layer.
  • MVVM adds data binding, so the view refreshes itself as data arrives.
  • With MVC, code has to tell the view to refresh, which adds a step.
An Android phone with an app on screen. Image: Acabashi, CC BY-SA 4.0, via Wikimedia Commons.
Fig. 02An Android phone with an app on screen. Image: Acabashi, CC BY-SA 4.0, via Wikimedia Commons.

The result favoured MVVM. Its interface rendered faster across the scenarios. The authors credit how well MVVM isolates business logic, which cuts down the delays that appear while a screen waits for data to be ready.

02/02

What rendering time means in practice

Rendering time is what users actually feel. A screen that appears a moment later than it should feels heavy, especially on the mid-range devices most people carry. The paper does not argue that MVVM is universally better. It argues that the choice carries a measurable cost, and that it belongs on the list of things worth testing.

A phone in use. Responsiveness shapes how heavy an app feels. Image: bohed, CC0, via Wikimedia Commons.
Fig. 03A phone in use. Responsiveness shapes how heavy an app feels. Image: bohed, CC0, via Wikimedia Commons.

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 articleDesign Patterns Are Also a Performance Decision(Keep scrolling)(Read it next)(Loading)