HTML traversal is very slow
问题 I faced that simply iterating through MSHTML elements using C# is horribly slow. Here is small example of iteration through document.all collection three times. We have blank WPF application and WebBrowser control named Browser: public partial class MainWindow { public MainWindow() { InitializeComponent(); Browser.LoadCompleted += DocumentLoaded; Browser.Navigate("http://google.com"); } private IHTMLElementCollection _items; private void DocumentLoaded(object sender, NavigationEventArgs e) {