develooper Front page | perl.perl5.porters | Postings from June 2022

Math::Big* to XS?

Thread Next
June 17, 2022 18:14
Math::Big* to XS?
Message ID:
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.

Curtis "Ovid" Poe
CTO, All Around the World
World-class software development and consulting

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About