Skip to content

Commit

Permalink
perf: Explicitly limit DependencyPropertyDetail array pool max length
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban committed May 19, 2021
1 parent 0609ec7 commit 34923c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Uno.UI/UI/Xaml/DependencyPropertyDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ internal class DependencyPropertyDetails : IEnumerable<object?>, IEnumerable, ID
private readonly Type _dependencyObjectType;
private object? _fastLocalValue;
private BindingExpression? _lastBindings;
private static readonly ArrayPool<object?> _pool = ArrayPool<object?>.Create(100, 100);
private static readonly ArrayPool<object?> _pool = ArrayPool<object?>.Create(_stackLength, 100);
private object?[]? _stack;
private PropertyMetadata? _metadata;
private object? _defaultValue;
Expand Down

0 comments on commit 34923c4

Please sign in to comment.