Submitted:
02 December 2026
Posted:
03 December 2026
You are already at the latest version
Abstract
The object of the study is the in-memory index of a skill-based matchmaking queue. The problem is that general ordered sets answer queue queries in time that grows with the number of waiting players; quantizing ratings into buckets reduces runtime but may harm match quality. The bucketed Fenwick index is defined for insertion, removal, rank, range count, and \( k \)-nearest enumeration and compared with comparison-based and domain-based alternatives. With ratings drawn from Lichess blitz games, it answers rank and range count queries in 26 and 60 ns for 106 players, regardless of queue size: 2.5–2.8 times faster than square-root decomposition, 11–12 times faster than an order-statistic B+tree, and more than 40 times faster than a skip list, because the working set stays in the first-level (L1) cache. Match quality is unaffected by quantization when windowing uses exact ratings: all 132 cases are equivalent to exact match within 1 percentage point. With bucket-level windowing, poor matches increased by up to 66 percentage points, and a closed-form model approximates this increase within 0.56 points. The index performs worse than alternatives when updates exceed 50–75% of operations, when buckets contain much less than one player on average, and when threads share one mutex-protected queue.
Keywords:
matchmaking
; Fenwick tree
; binary indexed tree
; order statistics
; rating quantization
; online games
; data structures
; CPU cache
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.