跳到主要导航 跳到搜索 跳到主要内容

Design and Implementation of a High-Performance In-Memory Key-Value Cache Server in Zig Using Robin Hood Hashing

  • Mingjie Guan*
  • , Jing Qiao
  • , Jia Liu
  • , Jun Yan
  • *此作品的通讯作者
  • China Academy of Civil Aviation Science and Technology

科研成果: 书/报告/会议事项章节会议稿件同行评审

摘要

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 ~20 μs and SET latencies of ~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.

源语言英语
主期刊名Proceedings of 2025 IEEE 7th International Conference on Civil Aviation Safety and Information Technology, ICCASIT 2025
编辑Huabo Sun
出版商Institute of Electrical and Electronics Engineers Inc.
385-390
页数6
ISBN(电子版)9798331503741
DOI
出版状态已出版 - 2025
已对外发布
活动7th IEEE International Conference on Civil Aviation Safety and Information Technology, ICCASIT 2025 - Yinchuan, 中国
期限: 22 10月 202524 10月 2025

出版系列

姓名Proceedings of 2025 IEEE 7th International Conference on Civil Aviation Safety and Information Technology, ICCASIT 2025

会议

会议7th IEEE International Conference on Civil Aviation Safety and Information Technology, ICCASIT 2025
国家/地区中国
Yinchuan
时期22/10/2524/10/25

指纹

探究 'Design and Implementation of a High-Performance In-Memory Key-Value Cache Server in Zig Using Robin Hood Hashing' 的科研主题。它们共同构成独一无二的指纹。

引用此