Miscellaneous performance tweaks

This commit is contained in:
Jason Turner
2015-06-28 13:20:20 -06:00
parent 902f48cd4c
commit b9875e2844
2 changed files with 7 additions and 5 deletions

View File

@@ -1346,13 +1346,15 @@ namespace chaiscript
Stack_Holder()
: call_depth(0)
{
stacks.reserve(2);
stacks.emplace_back(1);
call_params.emplace_back();
call_params.back().reserve(2);
}
std::deque<StackData> stacks;
std::vector<StackData> stacks;
std::deque<std::list<Boxed_Value>> call_params;
std::vector<std::vector<Boxed_Value>> call_params;
int call_depth;
};