Skip to content

rework reference semantics of setDT and friends - #7392

Draft
ben-schwen wants to merge 1 commit into
masterfrom
rework_reference_semantics
Draft

ben-schwen wants to merge 1 commit into
masterfrom
rework_reference_semantics

Conversation

@ben-schwen

Copy link
Copy Markdown
Member

Closes #2683
Closes #4240
Closes #4783
Closes #4816
Closes #5330

Probably needs to investigate
#1218
#3959

@ben-schwen ben-schwen changed the title add setDT, setalloccol rework reference semantics of setDT and friends Oct 26, 2025
@github-actions

Copy link
Copy Markdown
  • HEAD=rework_reference_semantics stopped early for fread(colClasses=list(Date='date')) improved in #6107
  • HEAD=rework_reference_semantics slower P<0.001 for setDT improved in #5427
  • HEAD=rework_reference_semantics slower P<0.001 for fread disk overhead improved in #6925
    Comparison Plot

Generated via commit 7049f9b

Download link for the artifact containing the test results: ↓ atime-results.zip

Task Duration
R setup and installing dependencies 4 minutes and 52 seconds
Installing different package versions 9 minutes and 59 seconds
Running and plotting the test cases 2 minutes and 38 seconds

Comment thread R/data.table.R
}

setDT = function(x, keep.rownames=FALSE, key=NULL, check.names=FALSE) {
setDT = function(x, keep.rownames=FALSE, key=NULL, check.names=FALSE, duplicateShared=TRUE) {

@jangorecki jangorecki Oct 26, 2025 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would keep naming style consistent here by naming duplicate.shared, or maybe just shared which would be the opposite of what current arg means, so then logic needs !

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants