-
Notifications
You must be signed in to change notification settings - Fork 978
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Teach forder to re-use existing key and index attributes instead of s…
…orting from scratch (#4386) * lazy forder * fix tests * fix tests * respect use.index option * bmerge timings * codecov * helper function * reduce diff to master * rename fix * setindex writes groups (retGrp=TRUE) forder C set index directly smart opt for index retGrp=T/F no tests updated yet * calc order, not groups * expect to reach optimization * skip opt for list * override retGrp=F by retGrp=T is legit use * more backward compatiblility, no retGrp from getindex * more verbose messages during opts in forderLazy * recycle order 1/-1 argument in one place * precise verbose messages * recycle arg once _by_ arg is known * copy paste typo fix * forder writing index disabled * fix tests * code coverage * minor update for safer use of internal option * fix bad name in unit test * retGrp=F requires downgrade idx and it seems to be costly * NA stats from forder * keyOpt fix, and existing tests * fixes for na.last in key and setting idx * filling tests for na.last=T and possible fixes * more stats, any non ascii utf8 * better naming of new stats attributes * add extra escape to escape IS_ASCII checks * update test number after merge * apply minor review feedback * More minor review feedback * use options= to set options * more feedback * Rename forderLazy->forderMaybePresorted * UNPROTECT() more aggressively * maybe_reset_index() helper * Strict prototyping (-Wstrict-prototypes) * fix sloppy refactor for maybe_reset_index() * Fix implicit reliance on datatable.optimize * Fix elsewhere, and encapsulate the logic inside a test() * style * spurious whitespace change * NEWS entry for lazy forder * tidy up NEWS * PROTECT() on key attribute * rename arg/option 'lazy' -> 'reuseSorting' * MaybeSorted->ReuseSorting * other lazy= usage --------- Co-authored-by: Matt Dowle <mattjdowle@gmail.com> Co-authored-by: Michael Chirico <michaelchirico4@gmail.com> Co-authored-by: Michael Chirico <chiricom@google.com>
- Loading branch information
1 parent
e066248
commit 1a84514
Showing
9 changed files
with
576 additions
and
90 deletions.
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
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
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
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
Oops, something went wrong.