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

Improve non-GCC implementation of statistics functions Quantile/Rank #322

Closed
wants to merge 3 commits into from

Conversation

mrchhaya
Copy link
Contributor

Implements #77

Passes all tests on
clang version 16.0.6
Target: arm64-apple-darwin23.0.0
Thread model: posix

Implemented using the boost ranked indicies which I believe should provide O(logn) find, delete, insert, rank operations.

Signed-off-by: Mohit Chhaya <mohitchhaya24@gmail.com>
Signed-off-by: Mohit Chhaya <mohitchhaya24@gmail.com>
@timkpaine timkpaine added type: enhancement Issues and PRs related to improvements to existing features tag: needs squash PRs that need to be cleaned/squashed labels Jul 12, 2024
cpp/csp/cppnodes/statsimpl.h Outdated Show resolved Hide resolved
Copy link
Member

@timkpaine timkpaine left a comment

Choose a reason for hiding this comment

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

csp/cpp/csp/cppnodes/statsimpl.h:16:10: fatal error: 'boost/multi_index_container.hpp' file not found

You may need to add boost-multi-index explicitly as a separate vcpkg dep in vcpkg.json

Copy link
Collaborator

@AdamGlustein AdamGlustein left a comment

Choose a reason for hiding this comment

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

Great stuff, thanks for the contribution! The only major action item is to remove the gnu::pbds tree since your impl beats it 😄

cpp/csp/cppnodes/statsimpl.h Show resolved Hide resolved
cpp/csp/cppnodes/statsimpl.h Outdated Show resolved Hide resolved
cpp/csp/cppnodes/statsimpl.h Outdated Show resolved Hide resolved
cpp/csp/cppnodes/statsimpl.h Outdated Show resolved Hide resolved
cpp/csp/cppnodes/statsimpl.h Outdated Show resolved Hide resolved
cpp/csp/cppnodes/statsimpl.h Outdated Show resolved Hide resolved
@timkpaine timkpaine changed the title Improve non-GCC implementation of statistics functions Quantile/Rank #77 Improve non-GCC implementation of statistics functions Quantile/Rank Jul 12, 2024
@timkpaine timkpaine marked this pull request as draft July 13, 2024 21:06
Signed-off-by: Mohit Chhaya <mohitchhaya24@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tag: needs squash PRs that need to be cleaned/squashed type: enhancement Issues and PRs related to improvements to existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants