> I meant this instead of adding the extra byte ("Alternatively").
> If the space is critical, then look at packing the Boolean into one of the
> other
> fields so the structure is 14 bytes long (saving 80kb on the above case),
> and accept that you need to extract this bit (could be as you load the file,
> or if you don't access it much, just inspect it when you access it).
> I don't advocate wasting memory unnecessarily - I started developing for
> systems with memory measured in small numbers of kb, not Mb or Gb - but you
> need to assess the relative importance of space/performance/development
> time/supportability etc for your application.
>
>
I understood that you said that I should 'compress' the boolean to 1 bit
while still keeping the record to 16 bytes. My fault.
I think I will force the record to 16 bytes (by adding 1 useless byte)
to keep it aligned for better speed.
My problem is that I need to optimize the program for speed but also for
RAM since I need to display the information in those arrays on screen
(as bitmaps) and load lots of them in RAM at the same time.
See I need room not only for those 1000 arrays but also for the bitmaps
they represent (a bitmap resulted from such array is about 200 pixels
height and about 2000-8000 pixels long.
Lot of RAM needed :(
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi