Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mshtml application speed

Status
Not open for further replies.

Gruuka

Programmer
Aug 27, 2006
24
NL
Hello all,

I am using mshtml in a asp. Looping trough every element, changing it/writing it back to the page seems to work fine but
there is one annoyance. Calling the mshtml object and filling it makes the page's loading time alot longer (say 4-5 seconds). Now for the company's site this is unaaceptable.

I tried to google to see if people get the same thing but there wasn't really solid information about the problem.

I'm hoping that one of you might have an answer or a different, easier to implement alternative than mshtml.

Thanks in advance.
 
Not 100% sure about that, since I do have to include the reference of the mshtml dll file into the project.
But I just recalled something I made an vb.net windows application once that read a bunch of links in with mshtml and that went pretty smoothe.
So my guess is that it can be a threading problem.
 
I'm just wondering whether it's ASP.NET that is actually causing any of the problems. Can you use mshtml (I've not used it before) in a HTML based site and/or another type of application and does the problem persist?


-------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
[URL unfurl="true"]http://weblogs.asp.net/marksmith[/url]
 
No I made an url crawler once for a sitemap generator that uses mshtml aswell (windows app) and the only thing that slowed the app down was the axwebbrowser(sp?) object that would be responsible for downloading the HTML code.
Parsing the html went as fast as any normal string operation given that amount of input text.

And I just tested it by removing the code that uses mshtml in my HttpModule and the test site loads alot faster now.
 
I think that I might have found out what's going wrong here, the Init method is being called twice in the HttpModule.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top