🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: de.comp.lang.c++
Article #98

Re: Bounds inference [Was: Re: Is the STL too authentic... ?]

#98
From: Walter Sommergruber
Date: Thu, 05 Oct 1995 05:39
25 lines
1845 bytes
Andrew Koenig  (ark@research.att.com) wrote on 05.10.95
about "Re: Bounds inference [Was: Re: Is the STL too authentic... ?]":

> > An interesting sidelight: in all of the cases where I've been called
> > in because of performance problems, the problem has been memory
> > management.
> I was once able to obtain significant (i.e. obviously perceptible to users)
> performance improvement in a frequently used program by rewriting one
> inner loop so that it caused the compiler to generate three instructions
> instead of five.  This involved allocating one extra byte for an array so as
> to be able to put a sentinel at the end.  I don't know whether you want to
> count that as a memory management problem or not.  I do know that if the
> compiler had done any kind of bounds checking, the performance would have
> been dramatically worse.

Andrew, can you imagine that bounds checking can be switched off ?
Take a good profiler and take a look at your functions. Optimize the few
functions which are critical. For all other functions: use bounds
checking.
And: the use of a good algorithm can speed up your program much more
than all compiler-switches or turning of bounds checking.
We need to provide quality !
---
Walter Sommergruber
email: wsog@site71.ping.at
Technical Details
Message-ID: <5vJ3iiKrnTB@site71.ping.at>
Path: arc1-ca.pugleaf.net!site71.ping.at!wsog
References: <DFtqtz.C91@research.att.com> <44q939$20s@auriga.galacta.demon.co.uk> <KANZE.95Oct4200154@slsvgqt.lts.sel.alcatel.de> <DFyFIs.30s@research.att.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!site71.ping.at!wsog
Date: 05 Oct 1995 07:39:00 +0200
From: wsog@site71.ping.at (Walter Sommergruber)
Newsgroups: de.comp.lang.c++,comp.lang.c++,comp.object
Message-ID: <5vJ3iiKrnTB@site71.ping.at>
References: <DFtqtz.C91@research.att.com>
 <44q939$20s@auriga.galacta.demon.co.uk>
 <KANZE.95Oct4200154@slsvgqt.lts.sel.alcatel.de>
 <DFyFIs.30s@research.att.com>
Subject: Re: Bounds inference [Was: Re: Is the STL too authentic... ?]
X-Newsreader: XP v3.02
X-Charset: ISO-8859-1
Organization: Sommergruber Software & Dienstleistungen