[Oberon] Python vs oberon: requirements to store 1 byte in memory

Hellwig Geisse hellwig.geisse at mni.thm.de
Mon Feb 7 16:05:21 CET 2022


On Mo, 2022-02-07 at 14:37 +0000, Paul Reed wrote:
> > So I was a bit disappointed when I did
> 
> > > > 
> > > > import sys
> > > > sys.getsizeof('ab')
> and got 51. :(
> 

OTOH, the overhead seems to be a constant 49 bytes,
so the ratio gets better with longer strings, and
approaches 1 in Zdenek's 1GB example... ;-)

Regards,
Hellwig


More information about the Oberon mailing list