in reply to Re^18: Module for 128-bit integer math? (updated)
in thread Module for 128-bit integer math?

I was merely querying the speed of Math::Int128

It is early days for Math::Int128. Now salva's made it work, it's up to those of us using it to drive the process of making it work faster, as the need arises. Along with any enhancements we'd like. I have a few already.

(whose basic math operations seem to be about 3 times slower than need be

Where does the "3 times slower" come from? Looking back at your benchmark I see the functional interfaces of Int128 being 30% to 40% slower than those of GMPz. Or did I misread the numbers?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re^19: Module for 128-bit integer math? (updated)

Replies are listed 'Best First'.
Re^20: Module for 128-bit integer math? (updated)
by syphilis (Archbishop) on Feb 14, 2011 at 21:09 UTC
    Where does the "3 times slower" come from?

    The (unposted) code that I wrote lifted the particular M::I128 multiplication that I benchmarked from 371517 multiplications/s to 927835 multiplications/s.
    That's a bit less than a factor of "3", admittedly. The rest was just my bad memory ... or perhaps deliberate exaggeration ;-)

    Cheers,
    Rob