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

Use rvalue references for NodeTools #172

Merged
merged 1 commit into from
Jul 17, 2024
Merged

Conversation

Spartan322
Copy link
Member

@Spartan322 Spartan322 commented Jul 6, 2024

Saves between 500-550ms on my local Linux debug tests.

@Spartan322 Spartan322 added bug Something isn't working enhancement New feature or request labels Jul 6, 2024
@Spartan322 Spartan322 force-pushed the prefer/rvalue-refs branch 3 times, most recently from 3a56b4c to 2bf31c2 Compare July 7, 2024 14:08
@Spartan322 Spartan322 changed the title Use rvalue references for expect_dictionary Use rvalue references for NodeTools Jul 7, 2024
@Spartan322 Spartan322 marked this pull request as draft July 7, 2024 16:24
@Spartan322
Copy link
Member Author

Spartan322 commented Jul 7, 2024

Its almost certainly more efficient to replace std::function with a move only function, like in https://github.com/Naios/function2 or https://github.com/iboB/itlib/blob/master/include/itlib/ufunction.hpp or any number of implementations from projects referenced in https://github.com/jamboree/CxxFunctionBenchmark

Hop311
Hop311 previously approved these changes Jul 7, 2024
Copy link
Contributor

@Hop311 Hop311 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on Windows 👍

Copy link
Contributor

@Hop311 Hop311 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@Spartan322 Spartan322 merged commit 93d095b into master Jul 17, 2024
14 checks passed
@Spartan322 Spartan322 deleted the prefer/rvalue-refs branch July 17, 2024 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants