This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Improves __ieee754_exp() performance by greater than 5x on sparc/x86.
On Mon, 1 Jan 2018, Patrick McGehearty wrote:
> With typical L3 caches now measured in Mbytes/thread
> and L2 caches at least 64Kbytes/thread if not 256Kbytes/thread
> having modestly larger tables is a reasonable tradeoff,
> especially since we are trading so much performance improvement
> but giving up some accuracy. I retained the 64 and 128 entry
> versions, so I can switch out the table size easily.
I think L1 cache size is relevant as well (and in practical uses you have
more than just the exp function and data competing for cache space; what's
optimal for a benchmark just calling a particular function may not be
optimal for a typical system as a whole). I think going back to the 64
entry version is appropriate.
--
Joseph S. Myers
joseph@codesourcery.com