In message <a05111b06b97eea0ca9c0@[63.120.19.221]> Dan Sugalski <[EMAIL PROTECTED]> wrote:
> Nobody's doing a get_integer on key PMCs--we're peeking directly. > (Integer lookup can also be done via the keyed_int method of the > vtable) At the moment it is using get_integer as I decided to get it all working first (which it laregly is now) before optimising it. However it's done it will still be shared code though as I don't intend to duplicate key decipherment in all the classes that need to do it. > Basically we need to make sure that the hash we're using as a > scratchpad can be looked up by integer index for speed reasons. I > thought we'd split it out into a Hash class the way we'd done with > Array, but I guess not. Are you saying that integer lookup in hashes bypasses the hashing and just knows where to look? If so then that isn't what integer keys were doing - it was converting them to strings and then looking them up in the normal way. Tom -- Tom Hughes ([EMAIL PROTECTED]) http://www.compton.nu/