Stream and String performances

Alan Lovejoy squeak-dev.sourcery at forum-mail.net
Mon Apr 2 15:51:28 UTC 2007


<Damien>Why does streaming over Strings is 10 times faster than streaming
over Arrays?</Damien>

It's because Strings store Characters as bytes (one or more, depending on
the encoding,) but Arrays store Characters as full Objects.

--Alan






More information about the Squeak-dev mailing list