Closed ghost closed 9 years ago
typedef multi_index_container< order, indexed_by< hashed_unique< member<order, uint64_t, &order::id>>> > orders_type;
see https://github.com/divaykin/quick-n-dirty-bench/blob/master/hashmap.cpp#L98
it could be seriously faster for our case.
also you can replace your map<> with ordered containers. or even try to place bids and asks into the same container just multiple indices
see https://github.com/divaykin/quick-n-dirty-bench/blob/master/hashmap.cpp#L98
it could be seriously faster for our case.
also you can replace your map<> with ordered containers. or even try to place bids and asks into the same container just multiple indices