in reply to Re: Re: Re: Hypergeometric Probability Calculation (speeding up 'choose' )

in thread Hypergeometric Probability Calculation

Install Math::BigInt::GMP and

`use Math::BigInt lib => 'GMP';`and things get much faster. You can distribute code in with that use, without the module locally installed everything still works, it just falls back on a slow Perl version. (Some may prefer Math::BigInt::Pari.)Math::Big is meant to be a convenient wrapper around other modules. Use a faster one and it gets faster. Use a slower one, and it isn't.

Replies are listed 'Best First'. | |
---|---|

Re: Re: Re: Re: Re: Hypergeometric Probability Calculation (speeding up 'choose' )
by Itatsumaki (Friar) on Mar 29, 2004 at 17:45 UTC |

In Section
Seekers of Perl Wisdom

Comment onRe: Re: Re: Re: Hypergeometric Probability Calculation (speeding up 'choose' )DownloadCode