Groups | Blog | Home
all groups > dotnet performance > january 2004 >

dotnet performance : Embedding Shdocvw zaps performance. Are there managed replacements?


jason NO[at]SPAM jasonthomas.com
1/29/2004 7:51:05 AM
I'm currently re-writing the GUI of my application to improve speed,
reduce memory consumption and startup time, and make it prettier. I
currently embed msie to show a basic informational page. But this
takes 9 meg of RAM and about 3 seconds to instantiate. This is
unacceptable. I need to dump shdocvw.

Does anyone know of a managed basic html / xhtml rendering engine? It
don't need scripting, I wouldn't mind, but don't need CSS. I don't
need to interact with the object model.

And yes, I'm also optimizing other components as well, but must get
over this hump too.

Thanks in advance.

-
Nat
1/29/2004 10:20:37 PM
Are you using mshtml.dll? If so, it might be worthwhile to use latebinding
instead.
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q305622

If it doesn't help, try this instead
http://www.iol.ie/~locka/mozilla/mozilla.htm

Nat

[quoted text, click to view]

jason NO[at]SPAM jasonthomas.com
2/1/2004 8:44:22 PM
No. mshtml was way too big. I implemented DWebBrowserEvents so that
I could get click events, but I don't even need that anymore. I guess
that I could be open to an active-x component, but would definatly
prefer managed code and am looking for something small, say < 100k on
disk so that I don't bloat my install package. I know 100K isn't that
much, but I don't need much functionality either. And yes, as you can
see, I'm picky.

-
Jason

[quoted text, click to view]
Joel Lucsy
2/3/2004 10:46:00 AM
Try http://terrainformatica.com/htmlayout/index.htm

[quoted text, click to view]
Stefano \
2/4/2004 10:21:13 AM

[quoted text, click to view]

Cool! Very nice. I think I am going to try this. The samples I downloaded
show only one problem (I haven't had time to investigate if it can be solved
with the SDK provided): one cannot use the arrow keys to scroll pages larger
than the window's area.
--
WildHeart'2k4

Andrew Fedoniouk
2/15/2004 3:49:06 PM
[quoted text, click to view]

Hi, Stefano!
You can send WM_VSCROLL(THUMBPOSITION) while handling e.g.
WM_KEYDOWN(PAGE UP/DOWN) to scroll it.

In the next version of HTMLayout (renamed to HTMEngine = HTMLayout +
HTMEditor) there is also function named ScrollToView(RECT) to scroll
e.g. to control gaining focus.

HTMEngine is also lightweight HTML WYSIWYG editor - replacement for
RichText. Formatted text, tables, images, CF_HTML support.

Andrew.




*** Sent via Developersdex http://www.developersdex.com ***
AddThis Social Bookmark Button