-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Use random generator from C++11 instead of from Boost in module filters #2964
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 random generator from C++11 instead of from Boost in module filters #2964
Conversation
From the CI output looks like metslib needs Boost random header to be included explicitly. I'd suggest to add it for now, even though we will probably get rid of it later (#2954). |
#2956 was merged, could you please rebase this one? |
77c99fd
to
8531106
Compare
8531106
to
1849da3
Compare
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.
This looks ok to me, so I assume it's time to have a look at the outputs from the unit tests just to confirm if updating values is the way to go.
Co-Authored-By: SunBlack <SunBlack@users.noreply.github.com>
Proposal to remove these useless lines. pcl/test/filters/test_sampling.cpp Lines 127 to 132 in 711b121
|
Yep, these lines are not very helpful. But can we add at least some test for the output |
Word of warning: MSVC random implementation is rather slow. |
But they could have just copied Boost 😛 IIRC, some instances have already undergone the transformation. Correct me if I'm wrong, but it seems that the code paths are performance critical. |
word of advice: Instead of depending directly on |
I wouldn't hold my breath. See As for macro flags, that's sorta what I did with |
runtime is more important than compile time.......if your change introduces a 2.5x speed degredation on windows people will probably be not happy with it ;) And this applies to cl as well as clang-cl users if VS STL is used. |
Marking this as stale due to 30 days of inactivity. Commenting or adding a new commit to the pull request will revert this. |
So, I just benchmarked |
Lets keep using boost for now. |
Separation from #2956 due to the need to adapt tests.