-
Notifications
You must be signed in to change notification settings - Fork 152
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
Improve algorithm implementation for compiler optimization, closes #150 #155
Conversation
Follow https://www.conventionalcommits.org/en/v1.0.0/ for a commit message, and be more explicit about the message rather than generic. |
Yes sure I will do it. Also issue is resolved right as all checks are passed so i dont need to make any further changes right? |
I have made the required changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There're a few indentation issues, but they can be fixed in the future. So, you don't have to worry about them.
Everything looks good, and thanks for contributing.
We should fix them now if we have any. @amitsingh19975 Please annotate the lines which you think need better indentation.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One line needs to be indented.
std::function<ValueType(SizeType r, PointerIn a, ValueType k)> lambda; | ||
|
||
lambda = [&lambda, n, w](SizeType r, PointerIn a, ValueType k) | ||
auto lambda = [n, w](auto const& self, SizeType r, PointerIn a, ValueType k)-> ValueType |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing indendation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done with the changes
@bassoy, what's your thought on moving trailing return type on to the next line for better readability. |
@Neel-Shah-29 could you indent the trailing return type a bit. |
I have brought the trailing return type to next line , do i need to indent it more towards the left side. |
Yes, but indent toward the right side. From auto fn = ...
-> To auto fn = ...
-> |
…ns in algorithms.cpp Compiler cannot perform small-object and other optimizations in algorithms.cpp . This is solved by providing the trailing return type and passing the lambda through one of its arguments. Fixes #150
Done with all the changes which were suggested . Kindly have a look once. Thankyou |
This PR fixes issue #150 by providing the trailing return type and passing the lambda through one of its arguments.