Skip to content

Commit 611a3c2

Browse files
wip
1 parent bbdac63 commit 611a3c2

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

include/engine/guidance/assemble_geometry.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ inline LegGeometry assembleGeometry(const datafacade::BaseDataFacade &facade,
3636
const bool reversed_target)
3737
{
3838
LegGeometry geometry;
39+
geometry.locations.reserve(leg_data.size() + 2);
40+
geometry.segment_distances.reserve(leg_data.size() + 1);
41+
geometry.segment_offsets.reserve(leg_data.size() + 1);
42+
geometry.annotations.reserve(leg_data.size() + 1);
43+
geometry.node_ids.reserve(leg_data.size() + 2);
3944

4045
// segment 0 first and last
4146
geometry.segment_offsets.push_back(0);

include/util/query_heap.hpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,7 @@ template <typename NodeID, typename Key> class UnorderedMapStorage
121121
void Clear() { nodes.clear(); }
122122

123123
private:
124-
template <typename T>
125-
using PoolAllocator = boost::fast_pool_allocator<T,
126-
boost::default_user_allocator_new_delete,
127-
boost::details::pool::null_mutex>;
124+
template <typename T> using PoolAllocator = boost::fast_pool_allocator<T>;
128125

129126
template <typename K, typename V>
130127
using UnorderedMap = std::
@@ -216,10 +213,7 @@ class QueryHeap
216213
return weight > other.weight;
217214
}
218215
};
219-
using HeapContainerAllocator =
220-
boost::fast_pool_allocator<HeapData,
221-
boost::default_user_allocator_new_delete,
222-
boost::details::pool::null_mutex>;
216+
using HeapContainerAllocator = boost::fast_pool_allocator<HeapData>;
223217
using HeapContainer = boost::heap::d_ary_heap<HeapData,
224218
boost::heap::arity<4>,
225219
boost::heap::mutable_<true>,

0 commit comments

Comments
 (0)