[squeak-dev] WideString hash is way slower than ByteString hash.
christophe.jalady at free.fr
christophe.jalady at free.fr
Fri May 14 16:58:14 UTC 2010
Just print this two scripts:
|s|
s := WideString with: (Character value: 16r55E4).
[100000 timesRepeat: [s hash]] timeToRun.
|s|
s := ByteString with: (Character value: 16rE4) with: (Character value: 16rE4)
with: (Character value: 16rE4) with: (Character value: 16rE4).
[100000 timesRepeat: [s hash]] timeToRun.
I've seen that "ByteString>>stringHash:initialHash" use a primitive. Could we
have such optimisation for WideString ?
Christophe.
More information about the Squeak-dev
mailing list
|