Skip to content

Commit b4fe534

Browse files
committed
update NEWS
1 parent 17319c6 commit b4fe534

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

NEWS.md

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,7 @@
3434

3535
5. `fwrite(x, row.names=TRUE)` with `x` a `matrix` writes `row.names` when present, not row numbers, [#5315](https://github.com/Rdatatable/data.table/issues/5315). Thanks to @Liripo for the report, and @ben-schwen for the fix.
3636

37-
6. New `frev(x, copy=TRUE)` as a faster analogue to `base::rev()` for atomic vectors/lists, [#5885](https://github.com/Rdatatable/data.table/issues/5885). Thanks to Benjamin Schwendinger for suggesting and implementing.
38-
39-
```R
40-
x = sample(2e8)
41-
setDTthreads(1) # single threaded for fair comparison, will get faster with more threads
42-
microbenchmark::microbenchmark(
43-
base = rev(x),
44-
frev_copy = frev(x, copy=TRUE),
45-
frev_inplace = frev(x, copy=FALSE),
46-
times = 10L,
47-
unit = "s"
48-
)
49-
# expr min lq mean median uq max neval cld
50-
# base 1.240 1.263 1.301 1.291 1.329 1.437 10 a
51-
# frev_copy 0.533 0.538 0.590 0.576 0.639 0.667 10 b
52-
# frev_inplace 0.099 0.101 0.130 0.102 0.107 0.260 10 c
53-
```
37+
6. New `frev(x, copy=TRUE)` as a faster analogue to `base::rev()` for atomic vectors/lists, [#5885](https://github.com/Rdatatable/data.table/issues/5885). Twice as fast as `base::rev()` on large inputs, and faster with more threads. Thanks to Benjamin Schwendinger for suggesting and implementing.
5438

5539
## NOTES
5640

0 commit comments

Comments
 (0)