What if you leave out the j=1?
(i.e., just test an empty repeat loop)
The test given could equally be proving only that the command "j=1" is
100 times slower in lingo than VC++.
I expect the real answer is somewhere in between.
On my machine: (DMX04)
-- "With j=1: 14923"
-- "Without j=1: 10614"
b
How does one create the info about the projector that should be displayed by
the About command in the Mac OS X system menu?
Any tips will be appreciated.
Slava
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the
Bloody hell!
I knew there was something there...thanks Valentin...I'm off to the shop
to get a 100 times faster computer so I can compete with C++!
Pedja
-Original Message-
From: Valentin Schmidt [mailto:[EMAIL PROTECTED]
Sent: 05 January 2005 15:32
To: [EMAIL PROTECTED]; Lingo program
A) Lingo (DMX)
ms0 = the milliseconds
repeat with i = 1 to 1
j=1
end repeat
ms1 = the milliseconds
put (ms1-ms0)
-- 26917
B) VC++ 6.0, console app
...
_ftime( &tstruct0 );
for (i=0; i<1; i++) j=1;
_ftime( &tstruct1 );
...
--> 240 (milliseconds)
So a ratio of about 100:1 on
I don't know if I've asked this before (sorry if I have)
Just out of curiosity does anyone know is there any speed difference
between Lingo's repeat loop and a repeat loop in some other languages
(C++,Java..etc)
I know it all depends on what's inside the loop but theoretically if
it's just a simp