From aea4bce0dd3b78fdf2b7eaa12acce9133d775e13 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Tue, 3 Mar 2020 08:54:58 +0100 Subject: [PATCH] Pass initial size for list. --- src/Avalonia.Styling/Styling/StyleInstance.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Avalonia.Styling/Styling/StyleInstance.cs b/src/Avalonia.Styling/Styling/StyleInstance.cs index c48690e96e..8ca31d654f 100644 --- a/src/Avalonia.Styling/Styling/StyleInstance.cs +++ b/src/Avalonia.Styling/Styling/StyleInstance.cs @@ -46,7 +46,7 @@ namespace Avalonia.Styling { var animationsCount = animations.Count; - _animations = new List(); + _animations = new List(animationsCount); _animationTrigger = new Subject(); for (var i = 0; i < animationsCount; ++i)