Skip to content

Commit

Permalink
readded small vector to see performance differences
Browse files Browse the repository at this point in the history
  • Loading branch information
drexlerd committed Jan 4, 2024
1 parent 7bc902a commit a24006b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
12 changes: 6 additions & 6 deletions include/loki/domain/pddl/declarations.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ namespace loki::pddl {

class TypeImpl;
using Type = const TypeImpl*;
//using TypeList = boost::container::small_vector<Type,1>; // often single type
using TypeList = std::vector<Type>;
using TypeList = boost::container::small_vector<Type,1>; // often single type
//using TypeList = std::vector<Type>;

class ObjectImpl;
using Object = const ObjectImpl*;
Expand All @@ -49,17 +49,17 @@ namespace loki::pddl {
class TermVariableImpl;
using TermImpl = std::variant<TermObjectImpl, TermVariableImpl>;
using Term = const TermImpl*;
//using TermList = boost::container::small_vector<Term, 2>; // often unary and binary predicates
using TermList = std::vector<Term>;
using TermList = boost::container::small_vector<Term, 2>; // often unary and binary predicates
//using TermList = std::vector<Term>;

class AtomImpl;
using Atom = const AtomImpl*;
using AtomList = std::vector<Atom>;

class ParameterImpl;
using Parameter = const ParameterImpl*;
//using ParameterList = boost::container::small_vector<Parameter, 10>; // often actions, quantifiers with few parameters
using ParameterList = std::vector<Parameter>;
using ParameterList = boost::container::small_vector<Parameter, 10>; // often actions, quantifiers with few parameters
//using ParameterList = std::vector<Parameter>;
using ParameterAssignment = std::unordered_map<Parameter, Object>;

class PredicateImpl;
Expand Down

0 comments on commit a24006b

Please sign in to comment.