[fpc-devel] Memory consumed by strings

Mattias Gaertner nc-gaertnma at netcologne.de
Sun Nov 23 11:11:54 CET 2008


On Sun, 23 Nov 2008 11:09:25 +0200
listmember <listmember at letterboxes.org> wrote:

> >> I am only considering in memory representation being UTF-32 (or
> >> UCS-4).
> >
> > What do you mean with 'memory representation'?
> 
> That, each char in a string in memory would be 4-bytes (or more);
> yet, when saved on disk (or transmitted across the net etc.) it would
> be UTF-8 compressed. IOW, no compression applied to in-memory strings.

I thought my example described just that. If strings use 4 bytes per
char then ASCII text will need 4 times more memory.


Mattias



More information about the fpc-devel mailing list