From 3807507338c410d9e8074a1a886cdcfa7dee7987 Mon Sep 17 00:00:00 2001 From: Mike Danes Date: Sat, 12 Mar 2016 13:33:10 +0200 Subject: Avoid Interval and RefPosition unnecessary initialization and copying RefPosition() builds a temporary object and initializes it with memset. push_back copies the temporary object to the list node. memset is called again to zero out the newly created RefPosition object. Add emplace methods to jitstd::list to avoid copying. Drop the redundant memset call. --- src/jit/jitstd.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/jit/jitstd.h') diff --git a/src/jit/jitstd.h b/src/jit/jitstd.h index 6bb1ddad99..59995fd89f 100644 --- a/src/jit/jitstd.h +++ b/src/jit/jitstd.h @@ -5,6 +5,8 @@ #include "allocator.h" +#include "type_traits.h" +#include "pair.h" +#include "utility.h" #include "unordered_map.h" #include "unordered_set.h" -#include "utility.h" -- cgit v1.2.3