Uh oh!
There was an error while loading. Please reload this page.
GH-43044: [R] So-called non-API entry points - #43173
Conversation
nealrichardson
left a comment
There was a problem hiding this comment.
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
| #define UTF8_MASK (1 << 3) | ||
| #define ASCII_MASK (1 << 6) |
There was a problem hiding this comment.
I think you can delete these too, they were only used by the macros you removed
nealrichardson
commented
Jul 7, 2024
Ah great, you've found the line in the scriptures to confirm that #43044 (comment) |
jonkeane
commented
Jul 7, 2024
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".