@inproceedings{21f6e4bedd0344cca2f24e346aeb6750,
title = "Design and Implementation of a High-Performance In-Memory Key-Value Cache Server in Zig Using Robin Hood Hashing",
abstract = "This paper presents the design and implementation of a high-performance in-memory key-value cache server written in Zig 0.14, leveraging the Robin Hood hashing algorithm to optimize probe sequence lengths and memory utilization. We employ Zig's std.AutoHashMap and std.HashMapUnmanaged abstractions, combined with a custom allocator strategy based on std.heap. GeneralPurposeAllocator, to achieve deterministic memory behavior and minimal overhead. The Robin Hood hashing scheme balances probe sequence lengths by allowing new entries to {"}steal{"}slots from entries with shorter probe distances, reducing clustering and improving lookup latency under high load factors. Our benchmarking on an isolated Intel i7-8700@3.2 GHz demonstrates average GET latencies of \textasciitilde{}20 μs and SET latencies of \textasciitilde{}25 μs at a 0.9 load factor - improvements of 20\% and 17\%, respectively, over linear probing implementations - and a 15\% reduction in memory footprint per million entries. These results validate Zig's suitability for systems programming in caching scenarios and highlight the benefits of Robin Hood hashing for in-memory data stores.",
keywords = "AutoHashMap, GeneralPurposeAllocatorg, hash table, in-memory caching, key-value store, memory efficiency, performance optimization, Robin Hood Hashing, systems programming, zig 0.14",
author = "Mingjie Guan and Jing Qiao and Jia Liu and Jun Yan",
note = "Publisher Copyright: {\textcopyright} 2025 IEEE.; 7th IEEE International Conference on Civil Aviation Safety and Information Technology, ICCASIT 2025 ; Conference date: 22-10-2025 Through 24-10-2025",
year = "2025",
doi = "10.1109/ICCASIT66611.2025.11348658",
language = "英语",
series = "Proceedings of 2025 IEEE 7th International Conference on Civil Aviation Safety and Information Technology, ICCASIT 2025",
publisher = "Institute of Electrical and Electronics Engineers Inc.",
pages = "385--390",
editor = "Huabo Sun",
booktitle = "Proceedings of 2025 IEEE 7th International Conference on Civil Aviation Safety and Information Technology, ICCASIT 2025",
address = "美国",
}