Front page | perl.perl5.porters |
Postings from June 2022
Math::Big* to XS?
Thread Next
From:
Ovid
Date:
June 17, 2022 18:14
Subject:
Math::Big* to XS?
Message ID:
CA+M4CHv7V6e88JETxUoef-W403tD+hoRCoHYJpzcyuoDihGk6Q@mail.gmail.com
Hi all,
Not a pre-RFC because I'm not even sure what I'm asking. The Math::Big*
modules, such as Math::BigInt and friends are slow. They're tied scalars
that use overload and in, some cases, AUTOLOAD. I had a case in some
math-heavy code in the past where I've wanted to use Math::BigFloat for
pseudo-random number generation but it was so slow that I couldn't. Is it
possible for the various Math::Big* modules to be reimplemented in XS to
make their performance decent enough that people don't want you away from
them? Would that even really improve performance?
Are they not used enough that this isn't important? Or are they not used
enough because they're slow? I've no idea which.
Best,
Curtis "Ovid" Poe
CTO, All Around the World
World-class software development and consulting
https://allaroundtheworld.fr/
Thread Next
-
Math::Big* to XS?
by Ovid