At 11:11 PM +0000 1/28/02, Nicholas Clark wrote:
>On Sat, Nov 10, 2001 at 12:37:24PM -0500, Dan Sugalski wrote:
>>  I think we're going to switch over to some sort of key creation op, but I'm
>>  not sure at the moment. Constant keys are easy, of course--they can be
>>  thrown up into the constants section, built at compile-time.
>
>Do constants with precomputed hashes buy us enough to overcome the extra
>memory needed to store the integer for the hash as well as the string?

Good question, and I'm not sure. I expect that for some it will--such 
as AUTOLOAD or ISA which are used a lot--and for most it won't 
matter. But the frequently accessed entries can be gotten even faster 
if we reserve slots for them in the various hashes and access them by 
offset instead.
-- 
                                         Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                       teddy bears get drunk

Reply via email to