arrow
Return

Accelerating string search: A microarchitecture-aware index for variable-length data

delete2026-04-10
delete0
PRE
AI
Y
Yuanliang Cui
C
Chujun Feng
Z
Zikang Chen
X
Xiaoying Zheng *
祝
祝永新 (Yongxin Zhu) *
DOI:10.1016/j.sysarc.2026.103805delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Variable-length string indexing is a critical component of modern data-intensive systems. However, it typically suffers from a significant performance disparity compared to fixed-length integer indexing. In this paper, we first conduct a fine-grained micro-architectural profiling to reveal the primary bottlenecks of variable-length string indexing on modern processors: frequent L1/LLC cache misses and branch mispredictions. Motivated by these insights, we propose the Prefix-String Index (PSI), representing a fundamental micro-architectural paradigm shift rather than an incremental structural patch. PSI exploits SIMD-accelerated order-preserving encoding to efficiently map variable-length strings into a compact 64-bit prefix space, effectively transforming complex string navigation into a hardware-friendly integer search problem. Internally, PSI introduces an adaptive node mechanism that dynamically toggles between flattened arrays and sub-Trie structures based on local data sparsity to maximize Instruction-Level Parallelism. Crucially, this adaptive mechanism is governed by deterministic, hardware-derived constants, entirely eliminating the need for manual hyperparameter tuning across diverse datasets. Furthermore, to mitigate the severe reconstruction overhead typical of dynamic workloads, PSI integrates a lightweight, non-blocking O(n) model retraining mechanism. Experimental results on real-world datasets (e.g., urls, idcards) and YCSB workloads demonstrate that PSI not only outperforms state-of-the-art baselines by 26%–33% in average throughput but also maintains a stable median latency between 0.50ms and 0.65ms, exhibiting superior stability in latency-sensitive scenarios. Notably, PSI reduces the p99.99 tail latency by 2.2× to 8.0× even under continuous insertions, validating that our micro-architectural adaptation is highly effective in enhancing retrieval performance and ensuring robust dynamic execution.
Keywords:
string indexing
micro-architectural optimization
variable-length strings
SIMD acceleration
adaptive data structures

Journal

Journal of Systems Architecture cover
Journal of Systems Architecture
IF:
4.1
Papers:
3.0K
Citations:
4.2K

Organization

No organization information available
Cited Papers

Cited Papers

err
IF0
err
err0
PREAI
err
errShare
errSave
How good are multi-dimensional learned indexes? An experimental survey
err2025-01-21
err0
errOAAI
errLi, Maocheng; Zeng, Yuxiang; Shen, Yanyan; Chen, Lei
errShare
errSave
errShare
errSave
The PGM-index
err2020-05-03
err0
errOAAI
errPaolo Ferragina; Giorgio Vinciguerra
errShare
errSave
Accelerating String-Key Learned Index Structures via Memoization-Based Incremental Training
err2024-04-01
err0
PREAI
errKim,Minsu; Hwang,Jinwoo; Heo,Guseul; Cho,Seiyeon; Mahajan,Divya; Park,Jongse
errShare
errSave
errShare
errSave
Tsunami
err2020-11-16
err0
errOAAI
errJialin Ding; Vikram Nathan; Mohammad Alizadeh; Tim Kraska
errShare
errSave
errShare
errSave
G-Learned Index: Enabling Efficient Learned Index on GPU
err2024-06-01
err1
PREAI
errLiu, Jiesong; Zhang, Feng; Lu, Lv; Qi, Chang; Guo, Xiaoguang; Deng, Dong; Li, Guoliang; Zhang, Huanchen; Zhai, Jidong; Zhang, Hechen; Chen, Yuxing; Pan, Anqun; Du, Xiaoyong
errShare
errSave
A Survey of Learned Indexes for the Multi-dimensional Space
err2025-10-25
err0
errOAAI
errAbdullah Al-Mamun; Hao Wu; Qiyang He; Jianguo Wang; Walid G. Aref
errShare
errSave
researcher View more