maui icon indicating copy to clipboard operation
maui copied to clipboard

Improve performance of rendering `DatePicker`

Open OvrBtn opened this issue 5 months ago • 27 comments

Description of Change

  1. Instead of DateTime.Now I'm using the DateTimeOffset.Now.DateTime.Date.
Before After
image image
  1. I've replaced the .ToUniversalTime() from UpdateMinimumDate() and UpdateMaximumDate() with .ToUniversalTimeNative() which uses TimeZone info from Java skipping loading the TZ database through .NET
Before After
image image

Issues Fixed

Fixes #24929 This issue also includes TimePicker but I haven't looked into it yet.

Performance change

Recorded in release configuration on physical android device - Samsung Galaxy A50.

Before After

OvrBtn avatar Sep 26 '24 18:09 OvrBtn