Any idea why the following code falls back to slow standard Perl
implementation of BigInt module instead of highspeed GMP being used ?
(no warnings, GMP module _is_ installed)

-----------------------
use Math::BigInt lib => 'GMP';

my $fac = Math::BigInt->new('4000');

print $fac->bfac(),"\n";
-----------------------
time real ~ 4 secs !!


Equivalent code with the explicit use of GMP:
-----------------------
use Math::GMP;

my $fac = Math::GMP->new('4000');

print $fac->bfac(),"\n";
-----------------------
time real ~ 0.08 secs !!

Reply via email to