-
Notifications
You must be signed in to change notification settings - Fork 4k
GH-43044: [R] So-called non-API entry points #43173
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
Conversation
|
|
nealrichardson
left a comment
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.
I think this is ok, just one suggestion for something else to remove. AFAICT we only call r_string_size on a STRING_ELT from a STRSXP, and similarly for utf8_string/utf8_strings. Rf_translateCharUTF8 should always work on those inputs.
Here's the R internals version of IS_ASCII etc.; LEVELS is defined as sxpinfo.gp, an opaque bitmask. Even if this change turns out not to be correct, I don't think we want to be touching sxpinfo.gp for anything ourselves. https://github.com/wch/r-source/blob/0ebd0b0b574847597ac19fbf0bbbf31e3197e84b/src/include/Defn.h#L832-L853
r/src/arrow_cpp11.h
Outdated
| #define UTF8_MASK (1 << 3) | ||
| #define ASCII_MASK (1 << 6) |
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.
I think you can delete these too, they were only used by the macros you removed
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.
Ah right of course
Ah great, you've found the line in the scriptures to confirm that #43044 (comment) |
It took many nights of studying the holy text |
|
After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit ca49843. There were 5 benchmark results indicating a performance regression:
The full Conbench report has more details. It also includes information about 11 possible false positives for unstable benchmarks that are known to sometimes produce them. |
### Rationale for this change CRAN ### What changes are included in this PR? Remove so-called non-api calls ### Are these changes tested? With tests ### Are there any user-facing changes? Hopefully not **This PR contains a "Critical Fix".** * GitHub Issue: #43044 Authored-by: Jonathan Keane <jkeane@gmail.com> Signed-off-by: Jonathan Keane <jkeane@gmail.com>
Rationale for this change
CRAN
What changes are included in this PR?
Remove so-called non-api calls
Are these changes tested?
With tests
Are there any user-facing changes?
Hopefully not
This PR contains a "Critical Fix".