[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] performance of the json parser

From: Paolo Bonzini
Subject: Re: [Help-smalltalk] performance of the json parser
Date: Mon, 05 Nov 2007 11:26:22 +0100
User-agent: Thunderbird (Macintosh/20070728)

I like it! Especially the 5/34/14 -> 2/22/3 is incredible!

-   str := ReadWriteStream on: UnicodeString new.
+   str := WriteStream on: (UnicodeString new: 8).

Whats the magic behind 8?

Greater than 0. :-)

If I have to choose a magic number, I would choose 6 (8 for the header + 6*4 = a cache line) or 14. Not that I think it makes any difference in practice.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]