in reply to Re: Incrementing a large number without Math::BigInt
in thread Incrementing a large number without Math::BigInt
Update: As a side note, Math::BigInt has some really weird memory usage. It jumps around like crazy, but my first test used about 50 megabytes on average while the second uses about 160.use Math::BigInt; my $i = 10000000; while (1) { my $num = Math::BigInt->new('1' . '0' x $i); print $i . "\n"; $i++; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Incrementing a large number without Math::BigInt
by GrandFather (Saint) on Apr 26, 2006 at 03:00 UTC | |
by Cap'n Steve (Friar) on Apr 26, 2006 at 03:44 UTC | |
by GrandFather (Saint) on Apr 26, 2006 at 03:51 UTC | |
by ikegami (Patriarch) on Apr 26, 2006 at 05:17 UTC | |
by Cap'n Steve (Friar) on Apr 26, 2006 at 05:45 UTC | |
|