-
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
adding an atime test case; new with optimization to allow avoid [ overhead #PR4488 #6290
base: master
Are you sure you want to change the base?
Conversation
Generated via commit e23e865 Download link for the artifact containing the test results: ↓ atime-results.zip Time taken to finish the standard R installation steps: 3 minutes and 18 seconds Time taken to run |
please revise #6288, and update this PR using the same advice in that other PR, before submitting more PRs |
converting to draft so we can focus on #6288 first |
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.
Requires revision (and the plot doesn't seem to be showing improvement)
DoSomething <- function(row) { | ||
someCalculation <- row[["v1"]] + 1 | ||
} | ||
allIteration_dt <- as.data.table(allIterations) |
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.
what's the point of this line? it's not being used anywhere inside the evaluated expression, noh? (expr
is only using allIterations
)
setup = { | ||
allIterations <- data.frame(v1 = runif(N), v2 = runif(N)) | ||
DoSomething <- function(row) { | ||
someCalculation <- row[["v1"]] + 1 |
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.
Needs indentation within this scope
This issue was reported in #3735. The issue was reported that, selecting by row number from a data.table is much slower than from a data.frame.
The pull request that fixed the regression can be found #4488. However, I couldn’t find specific details about the changes made to fix the regression. It’s likely that the changes involved optimizing the way data.table handles row selection to make it more efficient.