BigInt memory usage

kennytm kennytm at gmail.com
Wed Oct 12 22:36:40 PDT 2011


Jay Norwood <jayn at prismnet.com> wrote:
> I haven't looked at the std implementation, but I liked this guy's
> package in c++ .  He uses strings to hold the data, but you choose how
> the string packs the digits, with one of the choices being base 256 for
> the most efficient storage.    It might be a nice fit for a D port.
> 

D's big-int *is* using base-256. (actually, base-(size_t.max+1))

> http://www.hvks.com/Numerical/arbitrary_precision.html
> 
> bearophile Wrote:


More information about the Digitalmars-d mailing list