Skip to content
Tagged articles

btreemap

1 articles · Page 1 of 1
Rust High-Frequency Quantitative Trading
Rust High-Frequency Quantitative Trading
Oct 20, 2026 · Backend Development

High-Performance Order Book Maintenance: Incremental Sync, Data Structures & Benchmarks

This article details local order book maintenance covering incremental WebSocket depth updates, REST snapshot alignment, price quantization to integers, and compares BTreeMap, sorted Vec, flat arrays with bitmap indexing, and RingBuffer implementations with benchmark results on Apple M4 Pro showing array-based structures achieve 4-5ns updates vs 34ns for BTreeMap.

Incremental Syncbitmap-indexingbtreemap
0 likes · 39 min read
High-Performance Order Book Maintenance: Incremental Sync, Data Structures & Benchmarks