好像用了packed后数据会压缩,但速度变慢,不知对不对。
下面是DELPHI的帮助原文。
By default, the values in a structured type are aligned on word or double-word boundaries for faster access. When you declare a structured type, you can include the reserved word packed to implement compressed data storage. For example,
type TNumbers = packed array[1..100] of Real;
Using packed slows data access and, in the case of a character array, affects type compatibility. For more information, see Memory management.