-
Notifications
You must be signed in to change notification settings - Fork 101
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
Eliminate overhead of std::function in EventPoller
#12
Comments
Hello, You are right, the Do you want to submit a Pull Request ? |
As it's such a simple change, if there's someone else who can submit the PR it would be a lot faster than waiting on me as the internal process I have to follow for external code contributions can take a while. |
I can do this if you don't mind. @andrewkcorcoran |
That's great Chris thanks.
…On Wed, 16 Sep 2020, 6:39 pm Chris Sosnin, ***@***.***> wrote:
I can do this if you don't mind. @andrewkcorcoran
<https://github.com/andrewkcorcoran>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AL5LS3BZ3WJIBWF2NIPSNS3SGDEYJANCNFSM4ROWJHZA>
.
|
ybainier
added a commit
that referenced
this issue
Sep 18, 2020
EventPoller: eliminate std::function in poll() arguments
rosebible
pushed a commit
to rosebible/Disruptor-cpp
that referenced
this issue
Mar 10, 2021
rosebible
pushed a commit
to rosebible/Disruptor-cpp
that referenced
this issue
Mar 10, 2021
rosebible
pushed a commit
to rosebible/Disruptor-cpp
that referenced
this issue
Mar 10, 2021
…egh-12-event-poller EventPoller: eliminate std::function in poll() arguments
jsrdzhk
pushed a commit
to jsrdzhk/Disruptor-cpp
that referenced
this issue
Oct 19, 2023
jsrdzhk
pushed a commit
to jsrdzhk/Disruptor-cpp
that referenced
this issue
Oct 19, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/Abc-Arbitrage/Disruptor-cpp/blob/master/Disruptor/EventPoller.h#L39 could be trivially refactored to take a forwarding reference as the eventHandler instead of a
std::function
. This would eliminate the potential for memory allocation when thestd::function
is constructed and the virtual call when theeventHandler
is invoked.The text was updated successfully, but these errors were encountered: