Re: VB6, VB2005, or Something Else?

Tech-Archive recommends: Speed Up your PC by fixing your registry




"Paul Clement" <UseAdddressAtEndofMessage@xxxxxxxxxxxxxx> wrote in message
news:qnnh12t3rugeukuopf7jbb6fgjjr4ek2js@xxxxxxxxxx
On Wed, 15 Mar 2006 11:25:01 -0800, Bob O`Bob <filterbob@xxxxxxxxxxxxxxx>
wrote:

¤ Paul Clement wrote:
¤
¤ > Can I assume you're considering something just a little more
complicated than your example?
¤ > Otherwise GoSub is completely unnecessary and you can just use
Select...Case to perform the "a=b"
¤ > assignment. GoSub (which is slow in VB) is likely additional overhead
(although performance either
¤ > way is probably insignificant unless repeated for several iterations).
¤
¤ Point of order: you can not categorically say GoSub is "slow in VB"
because it's most definitely
¤ not true for any version prior to 4. And to some small extent, it was
actually an intentional
¤ hobbling of the feature - they knew at the time they *could have*
invested more effort to make
¤ it perform well, they simply chose not to.
¤

Whatever the reason for it, you are forced to the consider the performance
issue
if it has an impact on the application.

Blaming Microsoft for making it slow doesn't solve the problem. (Clue:
Writing
on the wall).

You are confusing cause and effect. MS didn't properly implement the GoSub
(or other parts of the language) because they had no understanding or
respect for the language or the users. GoSub wasn't slow because it
needed to be slow, it was slow because MS didn't think it was important to
implement correctly.

If you don't believe me TALK TO THEM! They were afraid of *their
implementation*, not of GoSub itself. The hack they used internally sent
chills up their spine every time they thought about tinkering with it.
Optimization was out of the question.

Dan



.



Relevant Pages

  • Re: VB6, VB2005, or Something Else?
    ... ¤> language and it can be easily ... But if you're using several GoSubs in a Sub or Function then it's ... The ability to write bad code is not an excuse to use GoSub. ... I'd have to use a knife, but I would miss the screwdriver. ...
    (microsoft.public.vb.general.discussion)
  • Re: VB6, VB2005, or Something Else?
    ... By the way, the preformance of Gosub in PCode was quite good, it ... ¤ ... I'm not complaining about the necessary changes, ... that Microsoft intentionally and unnecessarily made it more difficult. ...
    (microsoft.public.vb.general.discussion)
  • Re: VB6, VB2005, or Something Else?
    ... ¤> ¤ vFred. ... ¤> No one was really complaining about the removal of GoSub other than ... probably DOS BASIC apps and not Visual Basic apps. ... as they had never worked with a BASIC language before and had little or no ...
    (microsoft.public.vb.general.discussion)
  • Re: VB6, VB2005, or Something Else?
    ... ¤ Couldn't the same be said of those who don't use GoSub? ... Since GoSub is part of the language ... Generally code posted in the forums are short secuences to solve certain ... Just like C programmers looked down upon VB programmers. ...
    (microsoft.public.vb.general.discussion)
  • Re: VB6, VB2005, or Something Else?
    ... ¤> Replacing GoSub code is trivial. ... have spaghetti code then hopefully you understand how it got that way to begin with. ... ¤> converting their GoSub code to equivalent Visual Basic.NET code. ...
    (microsoft.public.vb.general.discussion)