From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199902271806.LAA12560@ellpspace.math.ualberta.ca> Date: Sat, 27 Feb 1999 11:06:20 -0700 (MST) From: Michal Jaegermann Subject: Re: sqrt.s I see all the time these square root routines with big lookup tables and impressive cycle counts. I cannot help not to wonder what will be impact of such tables in a "real life". While benchmarking one is performing square root operations in a tight loop; everything fits in a cache and a performance is impressive. But in reality these things are not used that way and it will be, usually, lots of other code around. If one starts taking cache, or even worse - page, hits because of lookups then a performance can worsen considerably. I still remember a paper by Dave Mosberger-Tang, from a few years ago, about optimizing on Alpha where he showed that local calculations may be much prefererable to distant lookups. I do not have measurements for a different computation strategies of sqrt in real code as opposed to small loops. But does anybody attempted some investigations of that kind?    Michal