Re: reduced size symbols/keywords
- From: "Alex Mizrahi" <udodenko@xxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 29 Aug 2008 16:56:15 +0300
v> Here I'm counting five slots, for a (32 bit machine) total size
v> of 20 bytes, just for the structure, when the actual "payload"
v> is only 12 bytes, or about 60% "waste"
yep, _just for structure_. for each symbol there is a string allocated
on heap. two or four bytes per char on unicode-supporting implementation.
plus overhead for type information, memory allocation etc. plus entry in
package's hash table.
it would be not 60% "waste", but more like 5-10% -- it's very unlikely
it can affect you.
.
- References:
- reduced size symbols/keywords
- From: verec
- reduced size symbols/keywords
- Prev by Date: Re: Gene Expression Programming(GEP)
- Next by Date: Keyword abuse (Re: reduced size symbols/keywords)
- Previous by thread: Re: reduced size symbols/keywords
- Next by thread: Keyword abuse (Re: reduced size symbols/keywords)
- Index(es):