-
Notifications
You must be signed in to change notification settings - Fork 985
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
copy shared columns before setkey #3768
Conversation
f5d5d03
to
3b3239c
Compare
Codecov Report
@@ Coverage Diff @@
## master #3768 +/- ##
==========================================
+ Coverage 99.41% 99.41% +<.01%
==========================================
Files 71 71
Lines 13197 13224 +27
==========================================
+ Hits 13120 13147 +27
Misses 77 77
Continue to review full report at Codecov.
|
Wasn't sure about the changes to |
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.
so maybe we can try revert changes to data.table.R
and see if it will still do what is needed?
…ause. Faster too by avoiding address() at R level which creates character strings for addresses and avoiding hash table of duplicated(); only noticeable for very many columns.
Great fix. I just followed up by creating |
@@ -173,3 +173,39 @@ bool Rinherits(SEXP x, SEXP char_) { | |||
return ans; | |||
} | |||
|
|||
void copySharedColumns(SEXP x) { |
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.
very nice!
OK. Would have to sit back down with this to figure which part exactly is needed to solve #2245... |
actually I think what makes sense is to remove the stuff in data.table.R to it's own PR. the issues are really separate now & deserve separate PRs |
I notice that I raised #2162 long time ago which is a similar but different case. I guess it's impossible to also address that at the moment? |
Thanks Kun. Your issue in fact looks the same and should be solved by this PR. |
Closes #3496
Closes #3766
See also: follow-up @ #3791