gemini-2.5-flash-preview-09-2025| input-price: 0.3 output-price: 2.5 max-context-length: 128_000 (cost: $0.01) Β· Anfrage: 2026-01-23T07:02:29.696323

Generated by rs-summarizer Version unbekannt

Abstract

This presentation introduces Adaptive Hashing, a novel framework arguing that a hash table's performance is optimally achieved by dynamically adjusting its hash function based on the current key set. This approach addresses the limitations of fixed hash functions: universally robust functions (e.g., Murmur) suffer quantifiable performance "regret" and waste computation, while fast, handcrafted functions (e.g., SBCL Prefuzz) risk catastrophic performance degradation (denial-of-service) when key distributions deviate from expectation. The core conceptual contribution is the demonstration of fast, online adaptation within the existing hash table API.

The method is instantiated on Common Lisp's EQ (pointer/integer identity) and EQUAL (value-based) hash tables. For EQ hashing, the adaptation utilizes fast, optimistic, specialized functions (like Pointer-Shift) that exploit common memory allocation patterns (keys as arithmetic progressions) to achieve near-perfect hashing and speed. Adaptation relies on cheap runtime checks, such as maximum collision chain length and collision count during rehash, serving as proxies for performance. Empirical results confirm that adaptive hashing delivers the common-case speed of aggressive, handcrafted functions while retaining the guaranteed worst-case robustness of universal hashes, yielding significant throughput gains (up to 50% in lookup speed for specific workloads) that persist in complex macrobenchmarks.

Adaptive Hashing: Performance Optimization via Online Function Adaptation

The following is a summary of the analysis and findings presented regarding Adaptive Hashing methodology:

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

Source