Delaunay / lython

python parser
BSD 3-Clause "New" or "Revised" License
3 stars 3 forks source link

Custom Allocator for std::vector<Value>() #3

Closed Delaunay closed 2 years ago

Delaunay commented 4 years ago

The idea would be to use the same allocator for std::vevtor and Value, so everything is allocated in one big chunk of memory.

Since the environment keeps growing and shrinking we expect that very few allocation would be needed in practice. and most memory would be reused.

Delaunay commented 4 years ago

I simply need to refactor the code to use emplace_back everywhere