From 7b638e8919f3121f354676aa5369f83fd46b0438 Mon Sep 17 00:00:00 2001 From: Dmitry Sirotkin Date: Sat, 11 Apr 2020 02:49:13 +0800 Subject: [PATCH] Substitute std::map with boost::container::flat_map Signed-off-by: Dmitry Sirotkin --- Matching/src/orderbook.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Matching/src/orderbook.hpp b/Matching/src/orderbook.hpp index e9aa2e1..5be15bc 100644 --- a/Matching/src/orderbook.hpp +++ b/Matching/src/orderbook.hpp @@ -17,6 +17,7 @@ #include "tbb/parallel_reduce.h" #include "tbb/blocked_range.h" #include +#include #include #include #include @@ -127,8 +128,7 @@ class OrderBook } compare_type type; }; - using map_allocator = boost::container::adaptive_pool>; - using order_tree_type = boost::container::map; + using order_tree_type = boost::container::flat_map; order_tree_type buy_tree_; order_tree_type sell_tree_; public: