Results 1 to 6 of 6

Thread: Speed: VB6 vs VB.NET

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2003
    Posts
    79

    Speed: VB6 vs VB.NET

    I am making an application where the speed of the program is absolutely critical (milliseconds count). The program will, in essence, be browsing the web, and processing the data it gets from web pages (no, this isnt a crawler or anything malicious I promise) and then taking actions based on what it finds. It has to do with getting world news.

    Milliseconds count -- what will be faster. VB6 or VB.NET. I don't care about ease of coding or anything along those lines, I just need the most efficent way of doing this.

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    VB.Net is far faster once the application is loaded and running I've found.
    But if you're developing an application in which its browsing the internet - then milliseconds won't make a difference because entire web requests could take any number of seconds - not milliseconds...
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3
    Addicted Member
    Join Date
    May 2002
    Posts
    142

    VB.net is the way to go...

    I am also writing a program where millisecond accuracy is important and .Net is doing it great. The speed of your computer also makes a huge difference. When running my program on a 1.7ghz processor to a 2.4ghz makes a huge difference. So get the fastest machine that you can.

    There are also many articles on how to optimize code in VB.net for maximium performance. One of the ways is to use the new operators ANDALSO and ORELSE found in this article:

    http://msdn.microsoft.com/vbasic/usi...et03252003.asp

    Good Luck.

  4. #4
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    If you are writing a application that needs performance boosts in the millisecond range, why are you using a high level language such as VB anyway? Look at assembly or C++. Both will yield much better performance.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Oct 2003
    Posts
    79
    I am not writing it in C++ or ASM because in VB it's about 600 pages long, in either one of those it'd be far longer + I don't know either.

    And as to browsing the web -- its highly multithreaded (about 100 threads at once so that cuts down on that).

  6. #6
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    A hundred threads will hammer the machine and its network IO to your hub or switch or router.
    I don't think you should be concerned with milliseconds here...
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

Posting Permissions

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



Click Here to Expand Forum to Full Width