Re: TIB: GOTO Slows Down?


[Prev][Next][Index][Thread]

Re: TIB: GOTO Slows Down?




I can't say that I've gone quite to the extent of timing loops to see how 
long it takes, but I have found that adding just one or two If/Then 
statements will slow down a program by more than you'd think.  Use as few of 
them as you can get away with if you need speed.

Eric Tollefson
Cmdr ERT01@aol.com

In a message dated 1/31/2000 7:52:40 AM Eastern Standard Time, 
cheetah@cheetahsden.com writes:

<< Subj:     Re: TIB: GOTO Slows Down?
 Date:  1/31/2000 7:52:40 AM Eastern Standard Time
 From:  cheetah@cheetahsden.com (Adam Newhouse)
 Sender:    owner-ti-basic@lists.ticalc.org
 Reply-to:  ti-basic@lists.ticalc.org
 To:    ti-basic@lists.ticalc.org
 
 
 Well it really depends... sometimes if i have two different ways of doing
 something, i put the instruction in a for loop that executes 100 times and 
time
 how long it takes each one.
 
 Owen Cannon wrote:
 
 > Really? That's an eye-opener because I've been struggling with speed every
 > time I write a program, I always have trouble with speed, what other things
 > should I watch for?
 > >
 > >
 > > use less gotos, everytime you use a goto, it starts from the top of the
 > > program and works it's way down looking for the lbl
 
 --
    Adam Newhouse
    cheetah@cheetahsden.com
    http://www.cheetahsden.com
 
 
 
 
 
 ----------------------- Headers --------------------------------
 Return-Path: <owner-ti-basic-outgoing@towerguard.unix.edu.sollentuna.se>
 Received: from  rly-yd04.mx.aol.com (rly-yd04.mail.aol.com [172.18.150.4]) 
by air-yd03.mail.aol.com (v67_b1.21) with ESMTP; Mon, 31 Jan 2000 07:52:40 
1900
 Received: from  towerguard.unix.edu.sollentuna.se 
(towerguard.edu.sollentuna.se [195.67.128.23]) by rly-yd04.mx.aol.com 
(v67_b1.21) with ESMTP; Mon, 31 Jan 2000 07:52:33 1900
 Received: by towerguard.unix.edu.sollentuna.se (Postfix)
    id 97831A4018; Mon, 31 Jan 2000 13:52:25 +0100 (CET)
 Delivered-To: ti-basic-outgoing@towerguard.unix.edu.sollentuna.se
 Received: by towerguard.unix.edu.sollentuna.se (Postfix, from userid 507)
    id 3846FA401C; Mon, 31 Jan 2000 13:52:25 +0100 (CET)
 Delivered-To: ti-basic@lists.ticalc.org
 Message-ID: <389585EC.EB30DA4E@cheetahsden.com>
 Date: Mon, 31 Jan 2000 06:54:04 -0600
 From: Adam Newhouse <cheetah@cheetahsden.com>
 X-Mailer: Mozilla 4.7 [en] (Win98; U)
 X-Accept-Language: en
 MIME-Version: 1.0
 To: ti-basic@lists.ticalc.org
 Subject: Re: TIB: GOTO Slows Down?
 References: <B4BA614F.1A2A%ocannon@oregonvos.net>
 Content-Type: text/plain; charset=us-ascii
 Content-Transfer-Encoding: 7bit
 Sender: owner-ti-basic@lists.ticalc.org
 Precedence: list
 Reply-To: ti-basic@lists.ticalc.org
 Errors-To: ti-basic-errors@lists.ticalc.org
 
  >>