Revolution speed sucks?

yoy yoy at comcast.net
Thu Aug 7 13:37:01 EDT 2003


Sarah,

Thanks for your speed.rev tester. It's very good.

My .rev stack lets a user config a 5 or 6 ball lotto with optional support
for bonus ball.

Usually the lotto will be a straight 6 ball lotto or a 5 ball and 1 bonus
pick. The problem is whether it's a straight 6 ball lotto or a 5 + 1 bonus,
the field will have six numbers per line. Is this is where I should just
grab the first line and do the test. I think my loop was doing this test for
every line of the field.

The variable testing makes much sense. If the lotto were a Powerball lotto,
I could grab the first 5 items and place them in one variable and put the
sixth item into another variable, test the first variable of 5 numbers using
for each, and test the bonus variable with a simple if x = y then colorize
them as needed and then put them back into the line in the field with lock
screen on.

Is this sound logic?

Still, Perl is much faster. I generated another 50,000 games (Powerball) and
with error checking and print OUT and it took only 5 seconds.

The price you pay for a gui?? Maybe I just wrote better perl code than
revolution code. ;-)

Thanks,

Andy




More information about the use-livecode mailing list