4 ms·
I'm using `std::function` and `std::vector` in the implementation, which allocates. I haven't written any benchmark, but I assume this would be the bottleneck.
by linkdd 3y ago
I'm using `std::function` and `std::vector` in the implementation, which allocates.
I haven't written any benchmark, but I assume this would be the bottleneck. I made this tool for a small CLI utility not concerned about performance.
I'd be happy to receive recommendations (and even PRs) though.
- jeffreygoesto 3y agoFor us it clearly were dynamic memory, formatting and console output that killed (realtime) performance.