看板 FB_chat 關於我們 聯絡資訊
On Saturday 06 March 2004 01:55, Rahul Siddharthan wrote: > 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.) I mean, it could be read from anywhere. A pipe, memory, cache, ... _______________________________________________ freebsd-chat@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-chat To unsubscribe, send any mail to "freebsd-chat-unsubscribe@freebsd.org"