How to waste computer memory?

BartC bc at freeuk.com
Sat Mar 19 11:20:45 EDT 2016


On 19/03/2016 15:14, BartC wrote:

> Which is about 3000 decimal digits, slightly more than 1KB in packed
> binary. In BCD it would be 1.5KB. At one-byte per digit (eg. ASCII) it's
> 3KB. At 4 bytes per (eg. UCS4), it's 12KB.

The comment refers to this which inexplicably got snipped (not my fault 
at all..):

[Steven D'Aprano:]
 >> Now, I routinely
 >> and without hesitation generate thousand-plus bit numbers like
 >> 2**10000,

-- 
Bartc



More information about the Python-list mailing list