-
Notifications
You must be signed in to change notification settings - Fork 978
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
Open
DorisAmoakohene
wants to merge
6
commits into
master
Choose a base branch
from
adding-a-new-test-for-regression-for-4488
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
30839cd
Update tests.R
DorisAmoakohene 03f1f5e
Updated commit comments
DorisAmoakohene 398f320
Updated test name
DorisAmoakohene 43336d7
updated test name and spacing
DorisAmoakohene e459e99
Test case title
Anirban166 e23e865
Merge branch 'master' into adding-a-new-test-for-regression-for-4488
Anirban166 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -166,5 +166,25 @@ test.list <- atime::atime_test_list( | |
Slow = "a01f00f7438daf4612280d6886e6929fa8c8f76e", # Parent of the first commit (https://github.com/Rdatatable/data.table/commit/fc0c1e76408c34a8482f16f7421d262c7f1bde32) in the PR (https://github.com/Rdatatable/data.table/pull/6296/commits) that fixes the issue | ||
Fast = "f248bbe6d1204dfc8def62328788eaadcc8e17a1"), # Merge commit of the PR (https://github.com/Rdatatable/data.table/pull/6296) that fixes the issue | ||
|
||
# Issue reported in: https://github.com/Rdatatable/data.table/issues/3735 | ||
# To be fixed in: https://github.com/Rdatatable/data.table/pull/4488 | ||
"DT[i] improved in #4488" = atime::atime_test( | ||
N = 10^seq(1, 20), | ||
setup = { | ||
allIterations <- data.frame(v1 = runif(N), v2 = runif(N)) | ||
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 commentThe 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? ( |
||
setDTthreads(1) | ||
}, | ||
expr = { | ||
for (r in 1:nrow(allIterations)) { | ||
DoSomething(data.table:::`[.data.table`(allIterations, r, )) | ||
} | ||
}, | ||
Slow = "d47a83fb2e25582e508f191f87a31ca81b736b57", # Parent of the first commit ( https://github.com/Rdatatable/data.table/commit/c33e98bb0a2f919bc1b428a5b7985f45f9d88a77 ) in the PR ( https://github.com/Rdatatable/data.table/pull/4488/commits ) that fixes the issue | ||
Fast = "958e3dd3cba7c259220aa653bef4beb8ad74b239"), # last commit in the PR ( https://github.com/Rdatatable/data.table/pull/4488/commits ) that fixes the issue | ||
|
||
NULL) | ||
# nolint end: undesirable_operator_linter. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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