
11 Apr
2010
11 Apr
'10
1:08 p.m.
On Sun, 2010-04-11 at 16:11 +0400, Mukhamed Karanashev wrote:
Hi, James. Because "String" is represented by the "[Char]", each element of String is allocated individually. ByteString represents a string in a single array and hasn't overhead for allocating each char.
Hmm. I read somewhere that GHC optimizes it to handle it more as char * if possible. Could anyone clarify it? Regards