← Forum
Book Release Note v0.1.0 — 2026-08-16
The first working book: adds, trades, cancels, and snapshots over a replayed feed.
- Order storage on nlib.
nlib::hiveowns the resting orders and keeps their addresses stable, one intrusive list per side gives price-time order, andnlib::mapindexes by order id, so a trade or cancel is an O(1) lookup and an O(1) unlink. nlib::orderis the node. The wrapper struct is gone:ordercarries the list hooks itself, which removed a per-order allocation and an indirection from every traversal.- Interface and implementation split.
Orderbook.hnow declares; the bodies moved tosrc/Orderbook.cpp. The header reads as the contract instead of the mechanism. - The submodule moved to
include/nlib, so the include path is a single directory. Existing clones needgit submodule sync && git submodule update --initonce after pulling.
Comments
Sign in to join the discussion.
No comments yet. Be the first.