Re: Is .NET slower than - say - VB6?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



The USB is supplying 24 bytes, say, every 4 ms (2 sets of 6 integers at 75
BPM). The display has to blank the previous 12 lines before it can write the
12 new lines. Each line is from pixel X to pixel X+1. The Y portion could be
a hundred pixels high.

Galen

"Smokey Grindel" <nospam@xxxxxxxxxx> wrote in message
news:u5RooyIpIHA.3940@xxxxxxxxxxxxxxxxxxxxxxx
if you see a difference like that then you are doing something wrong...
because I can control a 2 mpixel LED display via USB through a .NET app...
if I can push that kinda data you should be able to do something that does
very little data wise like pull ECG dta...

"Galen Somerville" <galen@xxxxxxxxxxxxxxxx> wrote in message
news:OssaPMIpIHA.1240@xxxxxxxxxxxxxxxxxxxxxxx

"news.microsoft.com" <marximus27@xxxxxxxxxxx> wrote in message
news:%23DKUAVGpIHA.548@xxxxxxxxxxxxxxxxxxxxxxx
Hi all,

First post here. I'm porting an application I wrote in VB6, over to
VB.NET 2005.

It could be said I'm really struggling with some (most!) of the syntax
of VB.NET 2005, but I'm getting there. I'm relying a lot, at this point,
on sample code from Microsoft, and other forums about the Internet.

One thing I've painfully noticed (hence the title of this post) is .NET
seems to be GOD AWEFULLY slow!

My VB6 version of my app interacts HEAVILY with Active Directory. My VB6
program starts in approximately 10 seconds, loading all 1300-odd Active
Directory user accounts in a listview.

VB.NET (doing the same thing and based on an example from MSDN) takes
almost 60 seconds!

WMI is also painfully slow. A "DiskQuota" DLL call to the server to get
volume useage info under VB6 is instant. A WMI call to get the same
information takes 30 or more seconds.

Why is this? My workstation/VB.NET 2005 platform is Windows XP 64-bit,
fully updated, running on a P4-3.2GHz, 1Gb RAM. My server is Server 2003
SP2 (two dual core 3.2GHz Xeons). My network is fine.

I'm attempting to port my program to VB.NET to get cross-platform
compatibility. 32-bit/64-bit/workstation and server. My program needs to
run on them all. A 32-bit program using 32-bit DLLs simply won't work on
a 64-bit platform - hence the port.

Is .NET inherently slower than VB6 where VB6 is using whatever 32-bit
DLL is needed to get the job done?

Mark


I have a VB6 app that gets Heart beats in real time over a USB
connection. The app displays the Heart sound and the ECG at rates up to
400 Beats-per-minute.

So far I have been able to get VB2005/VB2008 up to about 3
Beats-per-minute.

Galen






.



Relevant Pages

  • Re: vb6 nt service dot net interop error 429
    ... use COM Interop to create your VB6/COM object that contains all of your ... Server.exe references a vb.net dll via com ... I currently have a vb6 application running as an NT service. ... The method I am using to run the vb6 app as a service is through ...
    (microsoft.public.dotnet.framework.interop)
  • Re: VB6 executable accessing a .Net DLL with ComClass
    ... Your VB6 app is going to want to use the registry by default, ... regsvr32 in that it records the exact location of the dll. ... The VB6 dev environment wants a type-library, ...
    (microsoft.public.dotnet.framework.interop)
  • Re: VB6 executable accessing a .Net DLL with ComClass
    ... But a .Net COM registration without a explicit location in the registry is ... expected in The assmbly path of the calling app, ... vb6 program. ... The VB6 application and the .Net DLL will reside on the network for ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Desktop Icon Creating- without WSH
    ... another VB app and then uninstalls it, that DLL (be it the VB4,VB5, or VB6 ... Your app is then hosed. ... folders are actually located. ... and also it can check for the presence of this particular dll. ...
    (microsoft.public.vb.winapi)
  • Re: About protected memory in COM(in-process)
    ... This in-process COM DLL was initially used from VB6 and it has worked ever ... It has never ever been any kind of problems with this COM dll. ... For about 7 month ago a C# asp.net webb application was deloped where this ... a VARIANT type that assumed that only one kind of VARIANT was being ...
    (microsoft.public.vc.mfc)