1 Jul 2005 08:10
Re: #hash is too slow
Reinout Heeck <vwnclist <at> soops.nl>
2005-07-01 06:10:02 GMT
2005-07-01 06:10:02 GMT
Terry Raymond wrote:
> Argh!!
>
> Recently, I noticed that my image would occasionally act
> as if the slow flag had been turned on.
>
> Today I encountered a situation where it ran quite slow
> so I interrupted the process and found it calculating the
> hash of a FontDescription and to my consternation I found
> it calculating the hash of #('adobe' '*') using LargeInteger
> arithmetic, the result being 22481887550. Hmm, I thought
> the result of #hash should be a small integer!
>
> And now the result of FontDescription>>hash is 66211047995.
>
Oddly enough FontDescription seems to be the only part of our system
using arrays as dictionary keys
Dictionary allInstances select: [:d |
d keys anySatisfy:[ :o | o isKindOf: Array]]
only yields dictionaries holding FontDescriptions...
R
-
RSS Feed