[squeak-dev] WebClient, Json and CouchDB

Hannes Hirzel hannes.hirzel at gmail.com
Thu May 13 01:02:08 UTC 2010


On 5/13/10, Igor Stasenko <siguctua at gmail.com> wrote:
> My comment on
> SqS/JSON/JSON-hjh.32
>
> guys, can you give me any idea, why you replaced back the
>
> stream peek / stream next
>
> by
>
> self peek / self next
>
> removed all uses of #peekFor:
> and added:
>
> next
> 	^ self stream next
>
> peek
> 	^ self stream peek
>
>
> you're seem little concerned with speed?


The reason is that this change is in the following version

Name: JSON-Igor.Stasenko.34
Author: Igor.Stasenko
Time: 7 April 2010, 1:58:24.739 am
UUID: 4a92f912-177d-5941-9a4f-a773cb11f659
Ancestors: JSON-Igor.Stasenko.33

And I did not include this version 34 yet in http://www.squeaksource.com/JSON.

Thank you for pointing this out. Yes, I realized that a local upload
for 10000 records resulting in a 7MB compacted couchDB was a bit slow.
I did not measure it though. My estimate is that it took 50 seconds.
And maybe this it not slow - I don't know.

Hannes


P.S. Regarding UTF8, please read my post carefully. It should not be
in the JSON package. Currently all the code values > 128 are escaped
so there is no need for it in case of storing documents. However I do
not know yet how an elegant interface for getting it back properly
should look like.



More information about the Squeak-dev mailing list