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:
2.9K
Citations:
4.2K

Organization

No organization information available