PDA

Click to See Complete Forum and Search --> : [RESOLVED] About VB.Net


edhanz
Sep 21st, 2009, 06:47 PM
Hi,

i'm planning someday i'll learn VB.Net
my questions:

1. As i don't want to leave VB6, can i install VB.Net without uninstalling VB6?
2. I have 2 identical apps (made by my friend for case study in comparison), 1 was made by VB6 and the other was made by VB.Net, but the VB.Net version is so slow and heavy load on startup comparing to VB6 version. wht's caused that? it it because of DotNetFrameWork?

thank you..

RhinoBull
Sep 21st, 2009, 06:57 PM
1. Yes, you may have multiple versions of VB installed - in fact you may have them all installed on the same machine.
2. Although VB.Net is slower than its predecessor actual performance of compiled application largely depends on how it was written.
However, .Net IDE is noticably slower compared to that from 1998.

Pino
Sep 22nd, 2009, 03:49 AM
1. Yes, you may have multiple versions of VB installed - in fact you may have them all installed on the same machine.
2. Although VB.Net is slower than its predecessor actual performance of compiled application largely depends on how it was written.
However, .Net IDE is noticably slower compared to that from 1998.

With regards to point 2, if you have a modern machine you shouldn't really have too much of an issue. The IDE is heavier but it contains more features and is exploiting the improvement in hardware.

Pino

edhanz
Sep 22nd, 2009, 05:16 AM
my machine is P4 1.5 GHz with 1 GB RAM
my OS is Win XP SP2 with Microsoft .NET Framework 3.5 SP1

i did not run those 2 apps from IDE (as i don't have VB.Net yet), but i executed the given exe files, which have same purposes. and my friend told me that he built those 2 apps with identical method (in VB6 and VB.Net). but i found the VB.Net version is so slow on my machine..

si_the_geek
Sep 22nd, 2009, 05:30 AM
That is quite an old machine (the one I'm about to replace was end-of-line 5 years ago, yet is 3Ghz and 64 bit), so any speed differences will be magnified.

As you are using XP it also means that the framework is less 'optimised' than it is for Vista, so startup times will be slower.


If the methods used are actually identical then the .Net version would be slower - because it needs to do extra work to do things in the same way that VB6 is limited to.

If each app was designed to achieve the same things, but using the features available to the language, the speed (apart from initial startup) should be much closer.

JuggaloBrotha
Sep 22nd, 2009, 07:31 AM
my machine is P4 1.5 GHz with 1 GB RAM
my OS is Win XP SP2 with Microsoft .NET Framework 3.5 SP1

i did not run those 2 apps from IDE (as i don't have VB.Net yet), but i executed the given exe files, which have same purposes. and my friend told me that he built those 2 apps with identical method (in VB6 and VB.Net). but i found the VB.Net version is so slow on my machine..The speed difference really should only be on app startup, the .net app would be slow loading but once both are loaded the execution time of the apps performing their tasks should be pretty close to each other.

I replaced my P4 1.5 GHz comp so many years ago I don't even remember when I parted with it.

Pino
Sep 22nd, 2009, 07:42 AM
my machine is P4 1.5 GHz with 1 GB RAM
my OS is Win XP SP2 with Microsoft .NET Framework 3.5 SP1

i did not run those 2 apps from IDE (as i don't have VB.Net yet), but i executed the given exe files, which have same purposes. and my friend told me that he built those 2 apps with identical method (in VB6 and VB.Net). but i found the VB.Net version is so slow on my machine..

Time for a PC upgrade I think.

The fact is, software will use more resource to do more things as time goes on. Its either keep up or slowly sink away :(

Pino

edhanz
Sep 22nd, 2009, 08:06 AM
hehehe..i think time to collect more money and upgrade my machine. it slows me down :D

thank you for all replies..

RhinoBull
Sep 22nd, 2009, 09:55 AM
With regards to point 2, if you have a modern machine you shouldn't really have too much of an issue. The IDE is heavier but it contains more features and is exploiting the improvement in hardware.

Pino

I ran it on all kind of different hardware including quad cores too and like I said old IDE is a lot faster.
Regardless how much stuff they have to load it shouldn't be that slow.

Shaggy Hiker
Sep 22nd, 2009, 10:09 AM
Yeah, the IDE is getting slower each time, but apps are not. I have ported apps from VB6 to .NET (not with the wizard, which will always suck, for reasons nobody can control), and performance was about the same. Sometimes the .NET would run faster, but that depended on the program using features that .NET handled better.