-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Milestone
Description
When scrolling a VirtualizingStackPanel, this line of code does lots of boxing of bool values. thus leading to frequent GC.
| if (!object.ReferenceEquals(value, _defaultValue)) |
Maybe it should by optimized for boolean type ?
Here's the call stack:
UncommonField<bool>.SetValue()
TreeViewItem.System.Windows.Controls.Primitives.IHierarchicalVirtualizationAndScrollInfo.set_MustDisableVirtualization()
VirtualizingStackPanel.SetViewportForChild()
VirtualizingStackPanel.MeasureChild()
VirtualizingStackPanel.MeasureOverrideImpl()
VirtualizingStackPanel.MeasureOverride()
FrameworkElement.MeasureCore()
UIElement.Measure()
ContextLayoutManager.UpdateLayout()
ContextLayoutManager.UpdateLayoutCallback()
...lindexi, deeprobin and zhangenming