In a WPF application I'm using a VisualHost with a Children collection. This children collection contains around 10000-30000 DrawingVisuals.
Drawing these DrawingVisuals takes around 600 ms. Thats OK for me, but clearing the Children collection via Clear() takes about 120 ms. That seems to me very slow in comparison to drawing time.
Has anybody an idea how to speed up clearing a Children collection?