thread-pool icon indicating copy to clipboard operation
thread-pool copied to clipboard

Heap allocation issues

Open JensMunkHansen opened this issue 7 years ago • 1 comments

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?

JensMunkHansen avatar Mar 02 '18 06:03 JensMunkHansen

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?

mtrebi avatar Mar 10 '18 15:03 mtrebi