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

perf: optimize Rcpp #411

Merged
merged 13 commits into from
Sep 6, 2024
Merged

perf: optimize Rcpp #411

merged 13 commits into from
Sep 6, 2024

Conversation

m-muecke
Copy link
Member

No description provided.

@m-muecke m-muecke changed the title perf: pass numeric by reference in assert_surv perf: pass numeric matrix by reference in assert_surv Aug 23, 2024
@m-muecke m-muecke changed the title perf: pass numeric matrix by reference in assert_surv perf: optimize Rcpp Aug 23, 2024
@m-muecke m-muecke requested a review from bblodfon August 23, 2024 09:33
@bblodfon
Copy link
Collaborator

I see some const and &, that's I guess to avoid creating a copy right? Also dev-check fails, is it due to that?

@m-muecke
Copy link
Member Author

m-muecke commented Aug 23, 2024

I see some const and &, that's I guess to avoid creating a copy right? Also dev-check fails, is it due to that?

Yeah thats for passing args by reference and hence avoiding the copy. I believe dev-check if failing due to mlr3 changes, but will check it out.

Copy link
Collaborator

@bblodfon bblodfon left a comment

Choose a reason for hiding this comment

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

Max, for the c_weight_survival_score I think you've just changed the "spacing" of the code, right (not the logic)? I can't check line-to-line here, so please verify! (I had checked that the C code worked even though it is very complicated as we use it in a paper)

@m-muecke
Copy link
Member Author

m-muecke commented Sep 4, 2024

Max, for the c_weight_survival_score I think you've just changed the "spacing" of the code, right (not the logic)? I can't check line-to-line here, so please verify! (I had checked that the C code worked even though it is very complicated as we use it in a paper)

Not quite, the args also passed by reference instead of copy.

@bblodfon bblodfon merged commit 0e5c80b into main Sep 6, 2024
4 checks passed
@bblodfon bblodfon deleted the surv-assert branch September 6, 2024 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants