[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANNOUNCE] Lua 4.0 (alpha) now available
- From: "Russell Y. Webb" <rw20@...>
- Date: Wed, 3 May 2000 18:55:04 -0700
>To optimize the numeric style arrays you could do it even easier. Don't
>rehash if the "direct slot" for the key is free. That way you'ld get
>nearly 100% for these arrays. That hash function for numerics has this
>property: hash(i+1)==hash(i)+1 So consecutive keys give consecutive
>slots -> 100% fill rate.
Good point. Sounds kind of cool.
Russ