www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/19/03:31:04

Date: Wed, 19 Feb 1997 10:18:00 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Gregary J Boyles <boylesgj AT lion DOT cs DOT latrobe DOT edu DOT au>
cc: djgpp AT delorie DOT com
Subject: Re: Help improving function sped needed.
In-Reply-To: <5eccbc$f31@lion.cs.latrobe.edu.au>
Message-ID: <Pine.SUN.3.91.970219101458.22519K-100000@is>
MIME-Version: 1.0

On 18 Feb 1997, Gregary J Boyles wrote:

> I have tried numerous ways to improve it but none of them work and I am out of
> ideas.
> Can any one suggest a way of improving it?

It's hard to say without seeing the code for ConvertIndex and the [] 
operator.  But the best way is to profile your code with gprof; then you 
will see where your program spends most of its time.

> Does debugging info in the exe file slow down program execution 
> significantly?

It doesn't slow the program at all.  The debug info doesn't even get read 
into memory unless you run under a debugger.

Btw, did you compile with -O2 optimization?  If not, you should 
definitely try.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019