codon/bench/binary_trees
Stephen Berry e4dd06075d
Constructing std::unique_ptr<Node> in place to improve performance for C++ binary trees benchmark (#116)
* Using a pool to improve performance

Codon uses garbage collection, so I feel like this problem should permit using a memory pool, as would be common in this kind of problem. There are other ways to make the original code faster without a pool, but I think this makes the most sense.

* remove pool and construct unique_ptr in place

* added anonymous namespace and ran clang format

* Revert "added anonymous namespace and ran clang format"

This reverts commit 3d60f30a23.

* ran clang format
2022-12-16 11:32:43 -05:00
..
binary_trees.codon Dynamic Polymorphism (#58) 2022-12-04 19:45:21 -05:00
binary_trees.cpp Constructing std::unique_ptr<Node> in place to improve performance for C++ binary trees benchmark (#116) 2022-12-16 11:32:43 -05:00
binary_trees.py Dynamic Polymorphism (#58) 2022-12-04 19:45:21 -05:00