Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^18: Module for 128-bit integer math? (updated)

by syphilis (Archbishop)
on Feb 14, 2011 at 11:55 UTC ( [id://887970]=note: print w/replies, xml ) Need Help??


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

That's why I asked up front about a 128-bit math package, not an infinite precision math package

Understood. At no stage was it was my intention to suggest that you should use Math::GMPz instead of Math::Int128 - I was merely querying the speed of Math::Int128 (whose basic math operations seem to be about 3 times slower than need be), and using Math::GMPz for benchmark comparisons.

And why I tried really hard to avoid this debate

Apologies for my part in forcing that upon you - though that was never my intention. (I know very well how annoying it is to be taken to task over matters that are irrelevant to the task at hand.)

Cheers,
Rob
  • Comment on Re^18: Module for 128-bit integer math? (updated)

Replies are listed 'Best First'.
Re^19: Module for 128-bit integer math? (updated)
by BrowserUk (Patriarch) on Feb 14, 2011 at 12:16 UTC
    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.
      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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://887970]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-26 06:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found