[futurebasic] Re: [FB] Speed?? Is FB2 faster than FB3???

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : March 2001 : Group Archive : Group : All Groups

From: Robin <robinc@...>
Date: Mon, 05 Mar 2001 09:08:09 +1000
> I did a small simple program in FB2 that I wanted more speed with so I
> pasted the text into FB3. But it's slower MUCH slower!!!
> 
> I've stripped the program so it'basically only counts each loop it's doing
> in the main loop and display the results every ten seconds. On FB2 it does
> 24000 loops/10 sec. but in FB3 it only does 560 loops/10 sec.!!!!
> 
> On my 1400 powerbook it does 2700 loops and FB3 still does 560 loops!
> 
> It compiles in "Standard basic" in FB3.
> 
> Why?? Any Clues???

If you have any HANDLEEVENTS called from inside your loop, you could merely
be falling afoul of FBII's defaulting to GETNEXTEVENT (no delay) vs FB^3's
WAITNEXTEVENT (a fairly long delay, as control is politely passed to other
processes).
-- 
Robin
====================================================
Genesearch Pty Ltd
E-mail: robinc@...
WWW:    http://www.genesearch.com.au
====================================================