Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.2k
src: do not use std::function for OnScopeLeave#30134
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
nodejs-github-bot commented Oct 26, 2019
addaleax commented Oct 26, 2019
Hm … looks like Windows doesn’t like this? I’ve added a move operator for the struct, I could imagine that MSVC added a copy operation when returning the value from the |
nodejs-github-bot commented Oct 26, 2019
nodejs-github-bot commented Nov 1, 2019
nodejs-github-bot commented Nov 1, 2019
nodejs-github-bot commented Nov 4, 2019
nodejs-github-bot commented Nov 4, 2019
nodejs-github-bot commented Nov 5, 2019
nodejs-github-bot commented Nov 5, 2019
nodejs-github-bot commented Nov 5, 2019
nodejs-github-bot commented Nov 6, 2019
Using `std::function` adds an extra layer of indirection, and in particular, heap allocations that are not necessary in our use case here.
552b639 to e3aa3b6Comparenodejs-github-bot commented Nov 6, 2019
nodejs-github-bot commented Nov 6, 2019
nodejs-github-bot commented Nov 6, 2019
nodejs-github-bot commented Nov 7, 2019
addaleax commented Nov 7, 2019
Landed in 6072e01 |
Using `std::function` adds an extra layer of indirection, and in particular, heap allocations that are not necessary in our use case here. PR-URL: #30134 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]> Reviewed-By: James M Snell <[email protected]>
Using `std::function` adds an extra layer of indirection, and in particular, heap allocations that are not necessary in our use case here. PR-URL: #30134 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]> Reviewed-By: James M Snell <[email protected]>
targos commented Dec 1, 2019
To land on v12.x, this should either wait for #29874, or be backported. |
Using `std::function` adds an extra layer of indirection, and in particular, heap allocations that are not necessary in our use case here. PR-URL: #30134 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]> Reviewed-By: James M Snell <[email protected]>
Using `std::function` adds an extra layer of indirection, and in particular, heap allocations that are not necessary in our use case here. PR-URL: #30134 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]> Reviewed-By: James M Snell <[email protected]>
Using
std::functionadds an extra layer of indirection, and inparticular, heap allocations that are not necessary in our use case
here.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes