You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an NetOffice COMObject is disposed, its children are also disposed : the method Core.RemoveObjectFromList is called.
The problem is the _globalObjectList in Core is of type List, which is of complexity O(n²) when calling list.Remove(child) : it's really slow.
It should be possible to use a HashSet instead to achieve far better performance.
The text was updated successfully, but these errors were encountered:
juflo
changed the title
Dispose perfomance
Core.RemoveObjectFromList perfomance
Oct 10, 2018
Hi
When an NetOffice COMObject is disposed, its children are also disposed : the method Core.RemoveObjectFromList is called.
The problem is the _globalObjectList in Core is of type List, which is of complexity O(n²) when calling list.Remove(child) : it's really slow.
It should be possible to use a HashSet instead to achieve far better performance.
The text was updated successfully, but these errors were encountered: