arXiv:2610.02385cs.DSOct 2026

Manuscript Offprint

arXiv:2610.02385

Fine-Grained Analysis of SIMD-Based Hash Table Implementations

Cyril Nicaud, Pablo Rotondo

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

In recent years, several variants of classical hash table schemes have been developed by engineers in order to take advantage of the processor's internal parallelism using SIMD instructions, which make it possible to operate on multiple bytes simultaneously. At a small additional memory cost, this enables a significant speedup, making it a data structure that is increasingly popular in practice, when very high performance is required. In this article, we provide a detailed theoretical analysis of the dynamics of such hash tables. From a methodological standpoint, we use and adapt a technique developed by Wormald in the 1990s to study dynamic graphs. This approach, which can be adapted to many variants, enables us to accurately estimate the quantities of interest by capturing the dynamics of the data structure through systems of differential equations. Although complex, we provide an explicit description of the solutions of these systems, which can furthermore be efficiently approximated numerically. Our main results are stated with high probability, which is significantly more precise than average-case analyses, and they match experimental results remarkably well, even for hash tables of moderate size.

2012 ACM Subject Classification Theory of computation → Design and analysis of algorithms; Mathematics of computing → Probability and statistics

Keywords and phrases hash tables, SIMD instructions, Wormald's method, probabilistic analysis

Digital Object Identifier 10.4230/LIPIcs...

© Cyril Nicaud and Pablo Rotondo; licensed under Creative Commons License CC-BY 4.0 Leibniz International Proceedings in Informatics LIPICS Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl Publishing, Germany

Figure

XX:2 A Fine-Grained Analysis of SIMD-Based Hash Table Implementations

1 Introduction

Hash tables are a fundamental data structure that has become indispensable in practice and is now natively available in nearly all programming languages, yet their concrete implementation varies considerably from one language to another. For instance, one can find separate chaining (JAVA, C++), separate chaining with array-backed nodes (C#), open addressing with various probing schemes: pseudo-random perturbation (PYTHON, RUBY), quadratic probing (V8), linear probing (SWIFT), ...

The importance of hash tables is such that the organization of the table structures themselves takes up a non-negligible portion of the RAM of data servers and search engines, which has led engineers developing programming languages and performance-oriented libraries to revisit the classic academic results on hash tables in order to optimize them in terms of space and time. While the classic theoretical literature [7, 8, 11] long favored minimizing collisions as the primary performance criterion, a broader trend has emerged in recent years: the dominant constraint on modern hardware is cache locality rather than the number of collisions in the combinatorial sense, which has driven the convergence of several major languages and libraries toward the Swiss Table design, as seen in Google's Abseil (C++), Rust, Go, and Meta's F14. They all use compact metadata and SIMD instructions to drastically reduce memory accesses per probe. The goal of this paper is to propose a mathematical methodology for analyzing this type of hash table.