[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to quickly compare equality of structs ...

From: Paul Eggert
Subject: Re: How to quickly compare equality of structs ...
Date: Mon, 6 May 2019 12:00:11 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

On 5/6/19 11:55 AM, Keith David Bershatsky wrote:
> PROBLEM:  If the tentative plan makes good sense, then how can I 
> programmatically turn a combination of int, enum, double and bool into one 
> (1) unique numeric representation such as a SHA1 (Secure Hash Algorithm)?

It's not clear to me that hashing is needed here; why not just use
memcmp? And if you do need hashing, why not just use an ordinary hash
table rather than messing with cryptographic hashing?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]