The first published version: five containers and the shared wire records.
- Containers —
hive(stable addresses, skipfield iteration),map(flat open-addressing),single_queue(lock-free SPSC ring),pool(handle-based object pool),memory_pool(fixed-size-block allocator). Each has a GoogleTest binary;mapalso has a benchmark againststd::unordered_map. common.h—order,trade, and ten-levelbookrecords with theside/order_type/order_actionenums, fixed-point prices, and nanosecond timestamps.ordercarries intrusiveprev/nexthooks so a book can rest it without a node allocation.- Namespace
nqrenamed tonlib, matching the library and target names. Consumers must update qualified names; there is no compatibility alias. - Insertion is move-only across every container: the
insert(const T&)overloads are gone, so no insertion path copies an element silently. vectorwas removed —std::vectorcovers it, and a weaker duplicate of a standard container is not worth maintaining.
Comments
Sign in to join the discussion.
No comments yet. Be the first.