Why is UWP's DateTimeFormatter so slow at formatting times to strings?
DateTimeFormatter.ShortTime.Format(time)
If you try formatting 1,440 different times in a loop, that loop takes 2.5 seconds to complete.
If you just use DateTime.ToString("t")
, that same loop takes 0 seconds.
Since we seemingly have to use this DateTimeFormatter class to get properly localized times, it'd be nice if it performed reasonably.