[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Deterministic hashing for lua tables
- From: hollyrosella@...
- Date: Sun, 18 Dec 2011 20:52:13 +0000
Thanks, Tony. Somehow I missed your reply the other day. Putting the
hash value in the object itself when possible sounds like a good
On 12/16/2011 at 7:43 PM, Tony Finch <email@example.com> wrote:
firstname.lastname@example.org <email@example.com> wrote:
> I am imagining changing ltable.c:hashpointer to a function which when
> called with a pointer p, looks p up in an internal hash table IHT. If p
> is already a key in IHT, the new hashpointer function would return the
> value there, and if not, it would...
Sounds quite plausible. Another option might be to eagerly store the PRNG
value in the object itself.
f.anthony.n.finch <firstname.lastname@example.org> http://dotat.at/
Trafalgar: Southwesterly veering northwesterly 5 or 6, occasionally 7 in
north. Rough or very rough. Rain or showers. Moderate or good.