Re: The inaugural VB6 vs dot net test
- From: "Mike Williams" <mikea@xxxxxxxxxxxxxxxxx>
- Date: Tue, 4 Dec 2007 12:52:16 -0000
"Ulrich Korndoerfer" <ulrich_wants_nospam@xxxxxxxxxxxx> wrote in message news:utiiRAmNIHA.2000@xxxxxxxxxxxxxxxxxxxxxxx
This design has a severe flaw, because the array is predeclared
outside the two methods which do the test and both methods
use the same array. If you do Command1 first, a following
Command2 operates on an array that already has been
accessed . . .
It's not a design! It's just some quickly knocked up test code for you to try. Feel free to write your own code if you don't like it.
My points were: - Speed of counting down or up depends
on how the compiler implements it.
Of course it is. Nobody has said otherwise. And your point is . . . ?
counting down loops (counting down to zero!) in a faster
way than counting up loops. I took this from my observation
(by looking at the assembler code generated for counting up
loops), that the counting up implementation loads on each
iteration the final value for comparison.
That's exactly what I said when I mentioned the BPL stuff! So I don't see what new point you are making? Not that the presence (or absence) of a single instruction in the loop makes much of a difference overall of course when you consider what else is in the loop.
- Secondly of course the speed depends on miscellaneous
processor interna (like branch prediction etc.). So counting
up and down may vary in speed due to such issues too. I
assumed that this is obvious to a programmer who claimed
to have done assembly programmings
Im afraid that they didn't have branch prediction on the 6502 and similar processors I used twenty years ago! But of course all sorts of things need to be taken into consideration. Feel free to perform whatever tests you wish.
But again you just barked . . .
What's all this "barking" you keep going on about. I am not a dog.
Mike
.
- References:
- Re: The inaugural VB6 vs dot net test
- From: Ulrich Korndoerfer
- Re: The inaugural VB6 vs dot net test
- From: Ulrich Korndoerfer
- Re: The inaugural VB6 vs dot net test
- From: Mike Williams
- Re: The inaugural VB6 vs dot net test
- From: Ulrich Korndoerfer
- Re: The inaugural VB6 vs dot net test
- From: Mike Williams
- Re: The inaugural VB6 vs dot net test
- From: Ulrich Korndoerfer
- Re: The inaugural VB6 vs dot net test
- From: Mike Williams
- Re: The inaugural VB6 vs dot net test
- From: Mike Williams
- Re: The inaugural VB6 vs dot net test
- From: Ulrich Korndoerfer
- Re: The inaugural VB6 vs dot net test
- Prev by Date: Re: The inaugural VB6 vs dot net test
- Next by Date: Re: The inaugural VB6 vs dot net test
- Previous by thread: Re: The inaugural VB6 vs dot net test
- Next by thread: Re: The inaugural VB6 vs dot net test
- Index(es):
Relevant Pages
|