From a24006bb6d57f2894ec45f65db525e0cd24dd4ac Mon Sep 17 00:00:00 2001 From: Dominik Drexler Date: Thu, 4 Jan 2024 17:04:08 +0100 Subject: [PATCH] readded small vector to see performance differences --- CMakeLists.txt | 4 ++-- include/loki/domain/pddl/declarations.hpp | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 65f38573..74db49e7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,10 +12,10 @@ set(CMAKE_CXX_EXTENSIONS OFF) # Establish project ############################################################## -project(Loki VERSION 0.1 LANGUAGES C CXX) +project(Loki VERSION 0.1 LANGUAGES CXX) # Compilation flags, some configuration-specific -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -Wall -Wextra -pedantic -fPIC") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -Wall -Wextra -pedantic") set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG -fomit-frame-pointer") set(CMAKE_CXX_FLAGS_DEBUG "-O3 -DDEBUG") diff --git a/include/loki/domain/pddl/declarations.hpp b/include/loki/domain/pddl/declarations.hpp index ad71d5b6..1ac23faa 100644 --- a/include/loki/domain/pddl/declarations.hpp +++ b/include/loki/domain/pddl/declarations.hpp @@ -33,8 +33,8 @@ namespace loki::pddl { class TypeImpl; using Type = const TypeImpl*; - //using TypeList = boost::container::small_vector; // often single type - using TypeList = std::vector; + using TypeList = boost::container::small_vector; // often single type + //using TypeList = std::vector; class ObjectImpl; using Object = const ObjectImpl*; @@ -49,8 +49,8 @@ namespace loki::pddl { class TermVariableImpl; using TermImpl = std::variant; using Term = const TermImpl*; - //using TermList = boost::container::small_vector; // often unary and binary predicates - using TermList = std::vector; + using TermList = boost::container::small_vector; // often unary and binary predicates + //using TermList = std::vector; class AtomImpl; using Atom = const AtomImpl*; @@ -58,8 +58,8 @@ namespace loki::pddl { class ParameterImpl; using Parameter = const ParameterImpl*; - //using ParameterList = boost::container::small_vector; // often actions, quantifiers with few parameters - using ParameterList = std::vector; + using ParameterList = boost::container::small_vector; // often actions, quantifiers with few parameters + //using ParameterList = std::vector; using ParameterAssignment = std::unordered_map; class PredicateImpl;