Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heap allocation issues #8

Open
JensMunkHansen opened this issue Mar 2, 2018 · 1 comment
Open

Heap allocation issues #8

JensMunkHansen opened this issue Mar 2, 2018 · 1 comment
Assignees

Comments

@JensMunkHansen
Copy link

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?

@mtrebi mtrebi self-assigned this Mar 10, 2018
@mtrebi
Copy link
Owner

mtrebi commented Mar 10, 2018

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants