Omnimaga

Calculator Community => TI Calculators => TI-BASIC => Topic started by: Hot_Dog on April 23, 2011, 10:42:23 pm

Title: Fastest Ti-Basic Command
Post by: Hot_Dog on April 23, 2011, 10:42:23 pm
Any guesses (or facts) as to the fastest Ti-Basic command to run?  My guess is Lbl __
Title: Re: Fastest Ti-Basic Command
Post by: AngelFish on April 23, 2011, 11:14:14 pm
I'd guess End would be the fastest.
Title: Re: Fastest Ti-Basic Command
Post by: Freyaday on April 23, 2011, 11:16:23 pm
:
Title: Re: Fastest Ti-Basic Command
Post by: ingalls on April 23, 2011, 11:30:41 pm
lol, I think freyaday got this one!
Title: Re: Fastest Ti-Basic Command
Post by: Juju on April 23, 2011, 11:43:19 pm
Yep : would be the fastest I think. We need some sort of benchmark or something to prove it.
Title: Re: Fastest Ti-Basic Command
Post by: willrandship on April 23, 2011, 11:45:33 pm
We could disassemble the routine code and compare them directly, but yeah, since : = a newline, it's only parsing that would slow it down. Does parse time count?

Now, longest....:P and no loops ;) I'm thinking....ANOVA? :P
Title: Re: Fastest Ti-Basic Command
Post by: Builderboy on April 24, 2011, 03:22:20 am
SortA/SortD if given the correct parameters :P
Title: Re: Fastest Ti-Basic Command
Post by: Munchor on April 24, 2011, 07:47:50 am
:

/me wins

Eitherway, I'd say AsmPrgm is fast too.
Title: Re: Fastest Ti-Basic Command
Post by: JosJuice on April 24, 2011, 03:23:07 pm
Eitherway, I'd say AsmPrgm is fast too.
Yes, but that's not TI-BASIC.
Title: Re: Fastest Ti-Basic Command
Post by: ztrumpet on April 24, 2011, 04:17:06 pm
Eitherway, I'd say AsmPrgm is fast too.
Yes, but that's not TI-BASIC.
It is a TI-Basic Command. ;)

I think the slowest could be seq(), if given the correct parameters. ;D
Title: Re: Fastest Ti-Basic Command
Post by: Freyaday on April 24, 2011, 04:24:21 pm
The most hated has got to be )
Title: Re: Fastest Ti-Basic Command
Post by: AngelFish on April 24, 2011, 06:11:13 pm
I think garbage collect might be the slowest on average. Seq() and sort don't typically take several minutes to complete.
Title: Re: Fastest Ti-Basic Command
Post by: ztrumpet on April 24, 2011, 09:51:41 pm
I think garbage collect might be the slowest on average. Seq() and sort don't typically take several minutes to complete.
What if I click "No" on the GC? ;)
Title: Re: Fastest Ti-Basic Command
Post by: mrmprog on April 24, 2011, 09:52:45 pm
I think garbage collect might be the slowest on average. Seq() and sort don't typically take several minutes to complete.
What if I click "No" on the GC? ;)

Good point  :thumbsup:
Title: Re: Fastest Ti-Basic Command
Post by: Ashbad on April 24, 2011, 10:17:54 pm
If we're thinking in technical terms of actual commands, :, End, and the like are not really considerable ;)

You know what the fastest command is?  PrintScreen.  It does nothing, but on the TI-82 it actually printed the screen -- as in sent it to a mini printer.  I heard the actual code for PrintScreen on 8x calcs is an NOP or two -- and a return.  So, without Parsing, that is definitely the fastest commands at <10 cycles :)
Title: Re: Fastest Ti-Basic Command
Post by: JosJuice on April 25, 2011, 02:17:07 am
You know what the fastest command is?  PrintScreen.  It does nothing, but on the TI-82 it actually printed the screen -- as in sent it to a mini printer.  I heard the actual code for PrintScreen on 8x calcs is an NOP or two -- and a return.  So, without Parsing, that is definitely the fastest commands at <10 cycles :)
Doesn't it just produce an error message?
Title: Re: Fastest Ti-Basic Command
Post by: Freyaday on April 25, 2011, 10:44:08 am
According to http://tibasicdev.wikidot.com/timings, the fastest "commanding" command is getkey.