Re: Shave a few cycles off our ilog10 implementation

2024-12-18 Thread David Rowley
On Wed, 18 Dec 2024 at 23:42, John Naylor wrote: > The difference is small enough that normally I'd say it's likely > unrelated to the patch, but on the other hand it's consistent with > saving (3 * 10 * 10 million) cycles because of 1 less multiplication > each, which is not nothing, but for shov

Re: Shave a few cycles off our ilog10 implementation

2024-12-18 Thread John Naylor
On Thu, Oct 31, 2024 at 3:14 AM David Rowley wrote: > > On Thu, 31 Oct 2024 at 09:02, David Fetter wrote: > > This testing was basically just sending a bunch of appropriately sized > > pseudo-random uints in a previously created array sent through a tight > > loop that called the ilog10s and gett

Re: Shave a few cycles off our ilog10 implementation

2024-10-30 Thread David Rowley
On Thu, 31 Oct 2024 at 09:02, David Fetter wrote: > This testing was basically just sending a bunch of appropriately sized > pseudo-random uints in a previously created array sent through a tight > loop that called the ilog10s and getting average execution times. > > Any suggestions for more thoro

Re: Shave a few cycles off our ilog10 implementation

2024-10-30 Thread David Fetter
On Wed, Oct 30, 2024 at 09:54:20PM +0200, Heikki Linnakangas wrote: > On 30/10/2024 21:27, David Fetter wrote: > > Please find attached a patch to $Subject > > > > I've done some preliminary testing, and it appears to shave somewhere > > between 25-50% off the operations themselves, and these casc

Re: Shave a few cycles off our ilog10 implementation

2024-10-30 Thread Heikki Linnakangas
On 30/10/2024 21:27, David Fetter wrote: Please find attached a patch to $Subject I've done some preliminary testing, and it appears to shave somewhere between 25-50% off the operations themselves, and these cascade into things like formatting result sets and COPY OUT. Impressive! What did you

Shave a few cycles off our ilog10 implementation

2024-10-30 Thread David Fetter
Please find attached a patch to $Subject I've done some preliminary testing, and it appears to shave somewhere between 25-50% off the operations themselves, and these cascade into things like formatting result sets and COPY OUT. Best, David. -- David Fetter http://fetter.org/ Phone: +1 415 235