-
Couldn't load subscription status.
- Fork 71
Implement appearance order for vec_locate_sorted_groups()
#1747
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -115,7 +115,7 @@ r_obj* vec_joint_xtfrm(r_obj* x, | |
| chrs_smallest, | ||
| nan_distinct, | ||
| r_null, | ||
| true | ||
| false | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All these true->false flips are me going from |
||
| ), &n_prot); | ||
|
|
||
| r_obj* y_info = KEEP_N(vec_order_info( | ||
|
|
@@ -124,7 +124,7 @@ r_obj* vec_joint_xtfrm(r_obj* x, | |
| chrs_smallest, | ||
| nan_distinct, | ||
| r_null, | ||
| true | ||
| false | ||
| ), &n_prot); | ||
|
|
||
| const int* v_x_o = r_int_cbegin(r_list_get(x_info, 0)); | ||
|
|
||
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.
As you'll see in the C code,
appearance = TRUEhas become the "official" way of saying that we don't need to actually order character vectors, we just need to group them, allowing us to use the fasterchr_appearance()C function vs usingchr_order(). It has replaced thechr_orderedargument that was being used for testing.This is the first time we would be exposing
chr_appearance()to user code. I added and tested it a while back with the eventual goal of exposing it as an optimization somehow, and I like how it happens here throughappearance.