Generic UserControl Performance (Android) #7191
-
I have some views implemented with generics. These views have very poor performance, easily up to 10 seconds in some cases. Heavy, heavy optimization has been done to bring performance improvements and it's now down under ~2 seconds using a lot of x:Load, XAML simplification and smarter/special-purpose code-behind. However, with the level of optimization done here I would expect these views to be almost instantly loaded, they are not. I'm almost out of ideas to optimize further. My thinking now is this is due to the use of generics. Other views, of a higher complexity, don't seem to have these delays (this is subjective right now though so I could be wrong). My questions are:
public partial class EditorBase : UserControl
public partial class HierarchicalEditor<T> : EditorBase
where T : class, new()
public partial class ItemEditor: HierarchicalEditor<actual_type> { }
public sealed partial class Editor : ItemEditor Note that this design is required in UWP because |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Generics are generally forcing the JIT to run. Are you running with AOT? |
Beta Was this translation helpful? Give feedback.
Generics are generally forcing the JIT to run. Are you running with AOT?