[squeak-dev] Teleplace Cog VMs are now available

Igor Stasenko siguctua at gmail.com
Fri Jun 25 14:52:19 UTC 2010


2010/6/22 Denis Kudriashov <dionisiydk at gmail.com>:
> Hello.
>
> Cog performance is incredible. My application improved 3 times speedup. And
> I now does not need special caching logic in my program.
>
> But I found very strange behavior in xml dom parsing of big text with many
> russian text (by XML-Parser XMLDOMParser class).
>
> russionXml := String streamContents: [:s | s nextPutAll: '<root>'.
>     1000 timesRepeat: [
>         s nextPutAll: '<item>'.
>         s nextPutAll: 'фывапролд'.
>         s nextPutAll: '</item>'].
>     s nextPutAll: '</root>'
>     ].
>
> [XMLDOMParser parseDocumentFrom: russionXml] timeToRun .
>
> In pharo 1.1 I have
>
> 567 ms with old VM.
> 6673 ms with Cog VM.
>
> But all other stuff that I tested work faster with Cog (at 3-4 times
> faster).
>

Looks like the code using different paths.
I suspect that in one case, some operations are done primitively,
while in another one - interpreted.

>
>
>
>
>
>



-- 
Best regards,
Igor Stasenko AKA sig.



More information about the Squeak-dev mailing list