Mariano Martinez Peck skrev:
>
> WOW!!! I run it here in a Windows XP 1GB RAM and these are the results:
>
> str storeOn: (FileStream newFileNamed: 'test22.txt').
> Time millisecondsToRun: [|fs|
> fs := FileStream oldFileNamed: 'test22.txt'.
> 50000 timesRepeat: [str storeOn: fs].
> fs close]. 84022
>
> str storeOn2: (FileStream newFileNamed: 'test2.txt').
> Time millisecondsToRun: [|fs|
> fs := FileStream oldFileNamed: 'test2.txt'.
> 50000 timesRepeat: [str storeOn2: fs].
> fs close]. 4990
>
> BIG DIFFERENCE
>
Yeah, writing one char at a time (plus, when doing that, the broken
nextPut: primitive) isn't exactly performant :P
Btw, it works fine for Widestrings too when using storeOn: internally
(in printString f.ex.), but not when writing them to file. :/
Plus, as I indicated, behaviour from storeOn: is not 100% preserved
(different encoding used for ø), as I noted in the original post.

Cheers,
Henry

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to