Is .NET slower than - say - VB6?

M

Mike Williams

A little addition,GDI+ is also so slow on older machines
because of not having hardware acceleration. Hope to
see same performance like in DirectX in future.

GDI operations are slow even on the very latest machines if you're running
Vista, because Vista has sacrificed your video card's hardware accelerated
GDI functions on the altar of memory virtualisation. The accelerated
hardware for GDI functions does not work in Vista, even if you are using a
modern machine with a modern graphics card and the very latest drivers.

Mike
 
T

Tom Shelton

GDI operations are slow even on the very latest machines if you're running
Vista, because Vista has sacrificed your video card's hardware accelerated
GDI functions on the altar of memory virtualisation. The accelerated
hardware for GDI functions does not work in Vista, even if you are using a
modern machine with a modern graphics card and the very latest drivers.

Have you tested GDI+ functions? Just curious.
 
T

Tom Shelton


Yes and no. It really depends on the operation. Somethings are faster,
some are slower. Overall though, the productivity gains more then make
up for any minor slow downs.
 
K

kimiraikkonen

Have you tested GDI+ functions?  Just curious.

Yes, but particularly, for example using drawLine method on a picture
is done extremely slowly due to excessive CPU usage(even sometimes
peaks to %100) on Pentium4 2.4GHZ which is fairly idle when there's no
drawing or any GDI+ process.

Also, note that it's not a memory issue (i use GC.Collect), no
problems for memory allocation.

Thanks,

Onur
 
T

Tom Shelton

Yes, but particularly, for example using drawLine method on a picture
is done extremely slowly due to excessive CPU usage(even sometimes
peaks to %100) on Pentium4 2.4GHZ which is fairly idle when there's no
drawing or any GDI+ process.

That would indicate to me that it is using software rendering, and not
hardware.
 
T

Tom Shelton

That's exactly what i though about GDI+ :)

Actually, that's almost certainly true. I don't believe most cards
support gdi+ hardware rendering. Which is one of the reaons that
Windows forms apps are slower when dealing with graphics operations.
In fact, I just read an article that seems to indicate that a lot of
recent cards aren't even supporting GDI in hardware anymore - and
are focusing on Direct3D (which is what WPF and Vista's Aero use - in
other words, Aero does not rely on GDI or GDI+)....

http://www.fernicola.org/loquitor/index.php?/archives/2005/08/26.html
 
N

news.microsoft.com

Awesome! Truly awseome!

Speed of loading has halved. It now loads my domain user list in around
10-12 seconds!

The only thing I had to remove was the ".ToString" at the end of each
subitem value. If a user account had no SN or GivenName value, the
subroutine crapped out.

Well, onward. I gotta say though, I'm still rather disillusioned by .NET.
Lots of other things in my VB6 version which are damn near instant, when
converted to WMI or .NET, are grindingly slow.

Check out WIN32_DiskQuota and you'll see what I mean. And Win32_DiskQuota
has a horrible syntax for querying, too.

Thanks Bill, thanks Group!

Mark
 
M

Michel Posseth [MCP]

Untill MS has changed all the COM interfaces to .Net interfaces i guess you
have to live with the fact that VB6 is faster in these cases as i said
before VB6 and COM is native comunication so it would be really surprising
to me if .Net would exceed this speed

Michel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top