[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 64 bit->48 bit pointer hacks...



Dale E. Martin wrote:

> For short strings, allocating 8 bytes to point at a couple of characters
> just seems wrong ;-)

There are far better ways to optimize that space back if you _really_
need it. And RAM is cheap these days, so you probably don't need it.

Without giving it any thought, it seems that storing all your strings
back-to-back in one block of memory, then addressing each string as an
offset from the start of that block would be far, far better, and even
portable.



Reply to: