gemini-2.5-flash-preview-05-20| input-price: 0.15 output-price: 3.5 max-context-length: 128_000 (cost: $0.008) Β· Anfrage: 2025-06-09T08:39:20.622461

Generated by rs-summarizer Version unbekannt

Abstract:

This document, originating from the "Prospecting for Hash Functions" article and its accompanying GitHub issue discussion, details an extensive empirical search for optimal non-cryptographic integer hash functions. The author's custom "Hash Prospector" tool, utilizing JIT compilation, systematically generates, compiles, and evaluates random hash functions based on their avalanche effect and low bias. Key findings include the identification of a prevalent "XOR-right-shift, multiply, XOR-right-shift, multiply, XOR-right-shift" pattern in high-performing functions. The ongoing project has seen significant community contributions, particularly from TheIronBorn, employing advanced optimization techniques like metaheuristics and SIMD acceleration. This collaborative effort has led to the discovery of progressively less biased 32-bit and 16-bit hash functions, culminating in the triple32 function which approaches the theoretical bias limit for 32-bit integers, and the most recent 2-round function by TheIronBorn demonstrating the best performance in its class.

Summary:

Summary Rating: No ratings yet
Article Rating: No ratings yet

Source