+ Reply to Thread
Results 1 to 9 of 9

Thread: program made in vb.net performance

  1. #1
    thejeraldo is offline VB.NET Forum Enthusiast thejeraldo is on a distinguished programming path ahead
    .NET Framework
    .NET 3.0 (VS 2005/2008)
    Join Date
    Jun 2009
    Location
    Philippines
    Age
    23
    Posts
    70
    Reputation
    19

    Default program made in vb.net performance

    any guys right here ever experience having their programs made in vb.net run slow on the computer it was deployed at?

    what are the system requirements to run a program made in vb.net with framework 3.5?

    is it a simple program or a large program (eg with database)

    thanks!

  2. #2
    Robert_Zenz's Avatar
    Robert_Zenz is offline VB.NET Forum Idol Robert_Zenz master of VB.NET Robert_Zenz master of VB.NET Robert_Zenz master of VB.NET Robert_Zenz master of VB.NET Robert_Zenz master of VB.NET Robert_Zenz master of VB.NET Robert_Zenz master of VB.NET Robert_Zenz master of VB.NET Robert_Zenz master of VB.NET
    .NET Framework
    .NET 2.0
    Join Date
    Jun 2008
    Location
    Vienna, Austria
    Age
    23
    Posts
    503
    Reputation
    296

    Default

    Hello.

    No, not really. I mean, it can't be as fast as a native application, but the only real bottlenecks and slowdowns I experienced were design errors (made by me ).

    Though, I'd say that everything that runs XP can run .NET...whatever application it is.

    Bobby
    Don't give TypeCasting Errors a chance, turn ON Option Strict!
    Greatest Obfuscator ever: EazFuscator (Freeware)
    Greatest Reflection Tool ever: .NET Reflector (Freeware) with Add-Ins
    Greatest Introspection Tool ever: Gendarme (GPL)
    Greatest MySQL FrontEnd ever: MySQL-Front (Shareware), HeidiSQL (GPL)

  3. #3
    thejeraldo is offline VB.NET Forum Enthusiast thejeraldo is on a distinguished programming path ahead
    .NET Framework
    .NET 3.0 (VS 2005/2008)
    Join Date
    Jun 2009
    Location
    Philippines
    Age
    23
    Posts
    70
    Reputation
    19

    Default

    @Bobby: is a program in design time improves when it gets package and deployed? sorry i have so many questions about this its just that i want to hear from people with experience in .net. thanks!

  4. #4
    Robert_Zenz's Avatar
    Robert_Zenz is offline VB.NET Forum Idol Robert_Zenz master of VB.NET Robert_Zenz master of VB.NET Robert_Zenz master of VB.NET Robert_Zenz master of VB.NET Robert_Zenz master of VB.NET Robert_Zenz master of VB.NET Robert_Zenz master of VB.NET Robert_Zenz master of VB.NET Robert_Zenz master of VB.NET
    .NET Framework
    .NET 2.0
    Join Date
    Jun 2008
    Location
    Vienna, Austria
    Age
    23
    Posts
    503
    Reputation
    296

    Default

    Not necessarily, I mean, at Design-Time their's the debugger attached and possible Debug-Output is slowing down the execution (which get's dumped when you Build it for the release). If you want to test the performance, then the best way would be to just take it to test drive outside the IDE or even within a virtual machine.

    I've never much cared about performance of my program until it was needed. There are some rules which you can stick to:
    * To concatenate large strings (f.e. within a Loop) use a Stringbuilder (System.Text)
    * Always declare variables outside of Loops
    * At very large collections use a normal For Loop instead of a For Each (one variable declaration less)
    * Try to avoid unnecessary calls and exceptions

    Bobby
    Don't give TypeCasting Errors a chance, turn ON Option Strict!
    Greatest Obfuscator ever: EazFuscator (Freeware)
    Greatest Reflection Tool ever: .NET Reflector (Freeware) with Add-Ins
    Greatest Introspection Tool ever: Gendarme (GPL)
    Greatest MySQL FrontEnd ever: MySQL-Front (Shareware), HeidiSQL (GPL)

  5. #5
    thejeraldo is offline VB.NET Forum Enthusiast thejeraldo is on a distinguished programming path ahead
    .NET Framework
    .NET 3.0 (VS 2005/2008)
    Join Date
    Jun 2009
    Location
    Philippines
    Age
    23
    Posts
    70
    Reputation
    19

    Default

    ok.. thanks for the words of wisdom bobby!

  6. #6
    cjard's Avatar
    cjard is offline VB.NET Forum All-Mighty cjard has a reputation beyond repute cjard has a reputation beyond repute cjard has a reputation beyond repute cjard has a reputation beyond repute cjard has a reputation beyond repute cjard has a reputation beyond repute cjard has a reputation beyond repute cjard has a reputation beyond repute cjard has a reputation beyond repute cjard has a reputation beyond repute cjard has a reputation beyond repute
    .NET Framework
    .NET 2.0 (VS 2005)
    Join Date
    Apr 2006
    Age
    66
    Posts
    6,752
    Reputation
    937

    Default

    Quote Originally Posted by Robert_Zenz View Post
    * Always declare variables outside of Loops
    Not necessary. The compiler will move the declare out of the loop in the real program. Declare your variables as close to where you will use them as possible and keep their scopes small for more readable, logical code

    * At very large collections use a normal For Loop instead of a For Each (one variable declaration less)
    Using For Each sets up an enumeration which can be many hundreds of times faster at accessing a collection than a positional based indexer (Linked list for example must count 99 items before it can return you the hundredth, a LinkedList of 100 items iterated using a positional indexer must perform 5000 skips to return all items: don't do it).
    Do not advocate positional indexing purely on a variable declaration saving (nanoseconds)

    * Try to avoid unnecessary calls
    Again, nanoseconds, and youre advocating making code one huge long unreadable procedure for the sake of minor inlining performance (which the compiler will perform if it feels the need) gain. It's not worth it: readable code first!

  7. #7
    cjard's Avatar
    cjard is offline VB.NET Forum All-Mighty cjard has a reputation beyond repute cjard has a reputation beyond repute cjard has a reputation beyond repute cjard has a reputation beyond repute cjard has a reputation beyond repute cjard has a reputation beyond repute cjard has a reputation beyond repute cjard has a reputation beyond repute cjard has a reputation beyond repute cjard has a reputation beyond repute cjard has a reputation beyond repute
    .NET Framework
    .NET 2.0 (VS 2005)
    Join Date
    Apr 2006
    Age
    66
    Posts
    6,752
    Reputation
    937

    Default

    Quote Originally Posted by thejeraldo View Post
    any guys right here ever experience having their programs made in vb.net run slow on the computer it was deployed at?
    No, but there could be a load of crap on that computer

    what are the system requirements to run a program made in vb.net with framework 3.5?
    My sat nav runs .net programs very well, and that has something like a 200mhz processor and 40mb of ram

    is it a simple program or a large program (eg with database)
    doesnt really matter

  8. #8
    thejeraldo is offline VB.NET Forum Enthusiast thejeraldo is on a distinguished programming path ahead
    .NET Framework
    .NET 3.0 (VS 2005/2008)
    Join Date
    Jun 2009
    Location
    Philippines
    Age
    23
    Posts
    70
    Reputation
    19

    Default

    thanks cjard. its a great advice to consider code management if it only cost you nano seconds. and thanks for saying that a 200mhz processor and 40mb computer can run .net apps well. now i can feel a little lighter with this project im making. thanks a lot. everybody has been helpful in this forum.

  9. #9
    JohnH's Avatar
    JohnH is offline VB.NET Forum Moderator JohnH has a reputation beyond repute JohnH has a reputation beyond repute JohnH has a reputation beyond repute JohnH has a reputation beyond repute JohnH has a reputation beyond repute JohnH has a reputation beyond repute JohnH has a reputation beyond repute JohnH has a reputation beyond repute JohnH has a reputation beyond repute JohnH has a reputation beyond repute JohnH has a reputation beyond repute
    .NET Framework
    .NET 4.0
    Join Date
    Dec 2005
    Location
    Norway
    Age
    37
    Posts
    11,043
    Reputation
    1563

    Default

    Quote Originally Posted by thejeraldo View Post
    what are the system requirements to run a program made in vb.net with framework 3.5?
    from Download details: .NET Framework 3.5
    System Requirements

    * Supported Operating Systems: Windows Server 2003; Windows Server 2008; Windows Vista; Windows XP
    * Processor: 400 MHz Pentium processor or equivalent (Minimum); 1GHz Pentium processor or equivalent (Recommended)
    * RAM:96 MB (Minimum); 256 MB (Recommended)
    * Hard Disk: Up to 500 MB of available space may be required
    * CD or DVD Drive: Not required
    * Display: 800 x 600, 256 colors (Minimum); 1024 x 768 high color, 32-bit (Recommended)
    Quote Originally Posted by thejeraldo
    is it a simple program or a large program (eg with database)
    Hardware and Software Requirements for Installing SQL Server 2008
    Compact Hardware and Software Requirements

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts