Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <v2voe7$3fr50$1@raubtier-asyl.eternal-september.org>
Deutsch   English   Français   Italiano  
<v2voe7$3fr50$1@raubtier-asyl.eternal-september.org>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita Montero <Bonita.Montero@gmail.com>
Newsgroups: comp.lang.c
Subject: Re: Good hash for pointers
Date: Sun, 26 May 2024 18:36:25 +0200
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <v2voe7$3fr50$1@raubtier-asyl.eternal-september.org>
References: <v2n88p$1nlcc$1@dont-email.me>
 <v2qm8m$2el55$1@raubtier-asyl.eternal-september.org>
 <v2qnue$2evlu$1@dont-email.me> <v2r9br$2hva2$1@dont-email.me>
 <86fru6gsqr.fsf@linuxsc.com>
 <v2sudq$2trh1$1@raubtier-asyl.eternal-september.org>
 <8634q5hjsp.fsf@linuxsc.com>
 <v2vmhr$3ffjk$1@raubtier-asyl.eternal-september.org>
 <86le3wfsmd.fsf@linuxsc.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 26 May 2024 18:36:24 +0200 (CEST)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="861c1998cc926dd42c778978d59780b8";
	logging-data="3665056"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/9euEjcVULJPzsHQ3F5u8xGdt1C2rA9fQ="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:pgNW0ZO6mPDREassVPnOxudelpY=
In-Reply-To: <86le3wfsmd.fsf@linuxsc.com>
Content-Language: de-DE
Bytes: 2444

Am 26.05.2024 um 18:24 schrieb Tim Rentsch:
> Bonita Montero <Bonita.Montero@gmail.com> writes:
> 
>> Am 25.05.2024 um 19:40 schrieb Tim Rentsch:
>>
>>> Bonita Montero <Bonita.Montero@gmail.com> writes:
>>>
>>>> Am 25.05.2024 um 11:12 schrieb Tim Rentsch:
>>>>
>>>>> Your hash function is expensive to compute, moreso even
>>>>> than the "FNV" function shown earlier.  In a case like
>>>>> this one where the compares are cheap, it's better to
>>>>> have a dumb-but-fast hash function that might need a
>>>>> few more looks to find an open slot, because the cost
>>>>> of looking is so cheap compared to computing the hash
>>>>> function.
>>>>
>>>> A (size_t)pointer * LARGE_PRIME can be sufficient,
>>>> ignoring the overflow.
>>>
>>> Plenty fast but the output quality is poor. ...
>>
>> If the prime is large enough there'e no regular distribution.
> 
> Your conjecture is contradicted by empirical facts.

There are no empirival facts for that since two times the
taken prime is beyond the 64 bit address space.