Definately, but no waste is better rhan a little waste here and there. At least when it's fairly simple to avoid.
/ Peter Bortas (Kein Paket!)
Previous text:
2004-08-09 15:19: Subject: Image.Image
Not really, no. Since the size is usually rouded to a nice round number _after_ the addition of the malloc overhead. And no malloc I know of allocates memory with less than 8bytes alignment.
So the average wasteage is probably smallre than 1 byte.
/ Per Hedbor ()