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

initial internal code for a between for strings #2995 #3540

Closed
wants to merge 1 commit into from

Conversation

romainfrancois
Copy link
Member

for now this is a separate function internally but I feel like between should dispatch and deal with at least REALSXP, STRSXP, INTSXP and RAWSXP.

The string version uses a VectorVisitorImpl<STRSXP> so that it can take advantage of its greater and less methods.

Wondering however if we could take advantage that the vec in VectorVisitorImpl<STRSXP> is forced to be utf8, would we not have a way to compare two utf8 strings without having to go through the hoops of CharacterVectorOrderer

@romainfrancois romainfrancois added feature a feature request or enhancement data frame performance 🚀 wip work in progress labels Apr 25, 2018
@krlmlr
Copy link
Member

krlmlr commented May 2, 2018

We might be able to use Rf_Scollate() for elementwise comparison, this is what string_relop() seems to use in R-base.

@krlmlr
Copy link
Member

krlmlr commented May 2, 2018

If we had sort keys (#3044) it would be just a memcmp()...

@romainfrancois
Copy link
Member Author

I'm going to close this for now. We'll revise a more generic between #3744 through vctrs in the 0.9.0 horizon.

@romainfrancois romainfrancois deleted the feature-2995-between-strings branch March 11, 2019 14:55
@lock
Copy link

lock bot commented Sep 7, 2019

This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

@lock lock bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature a feature request or enhancement performance 🚀 wip work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants