[fpc-devel] dominant short strings in compiler source

L505 fpc505 at z505.com
Tue May 16 23:12:36 CEST 2006


> well it would have to have a different in memory format. Maybe a -1 based
> array with the first two locations used for length would do it.

Add new types that extend the 255 limit, using more bytes for storage to double and even
triple our current 255 limit.

QShortString: 255 X 4 with 4 bytes used to store the length
TShortString: 255 X 3 with 3 bytes used to store the length
DShortString: 255 X 2 with 2 bytes used to store the length

var
  qss: QuadShortString[1020];
  tss: TripleShortString[765];
  dss: DoubleShortString[510];
  ss: ShortString[255];






More information about the fpc-devel mailing list