Skip site navigation (1)Skip section navigation (2)
Date:      Sat,  6 Mar 2004 02:55:35 +0100
From:      Rahul Siddharthan <rsidd@online.fr>
To:        Daniela <dgw@liwest.at>
Cc:        chat@freebsd.org
Subject:   Re: FreeBSD Most wanted
Message-ID:  <1078538135.40492f9742e70@imp4-q.free.fr>
In-Reply-To: <200403060245.05790.dgw@liwest.at>
References:  <20040306012556.GA2554@online.fr> <200403060245.05790.dgw@liwest.at>

next in thread | previous in thread | raw e-mail | index | archive | help
Daniela wrote:
> I like doing AI programming, that's numbercrunching most of the time.
> 
> A compiler can't, for example, know whether you need to have zero returned 
> from the atoi() function when the user entered nonsense. If you don't need to 
> check whether the user has entered a valid number, you can do it *much* 
> faster.

Excellent example.  Here you're limited by the speed of the fingers of
the user who's entering the data, so there's *absolutely no point* in
optimising the atoi() function in this way.  (Or if you're reading from
the disk, the disk I/O will be the bottleneck, though it's admittedly
faster than fingers.)

R



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1078538135.40492f9742e70>