1 points · by aolczak · 14y ago · 4 comments
Assuming: - a single char takes 1 byte. - a linked list takes about 5 bytes/char. - a double linked list takes about 9 bytes/char.
1. Why is "Plain Text" format so low on memory. Is it using an array as storage?
2. Why is "Rich Format" so heavy?
Insight, details answers, and links welcome.
From their example:
$ echo "{\rtf1\ansi{\fonttbl\f0\fswiss Helvetica;}\f0\pard
This is some {\b bold} text.\par
}" |wc -c
86
$ echo "This is some bold text." |wc -c
24
Also see cd34's comment.If you're going to add information, that has to be a higher byte count.
thanks for pointing that out.