thread-pool
thread-pool copied to clipboard
Heap allocation issues
I am writing a fast SDK for executing tasks and executing callbacks registered to events. I used your approach for execution and noticed that heap allocation is done whenever a std::function is created which is suboptimal for performance. Have you considered other alternatives?
That is a really good point. I've never thought about it but it is something really worth look into. Do you already have an idea?