Skip to content

Commit

Permalink
bigger example with timings in news item example
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdowle committed Apr 23, 2019
1 parent 0b4576b commit aa8da4b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
* now writes compressed `.gz` files directly, [#2016](https://github.com/Rdatatable/data.table/issues/2016). Compression, like `fwrite()`, is multithreaded and compresses each chunk on-the-fly (a full size intermediate file is not created). Use a ".gz" extension, or the new `compress=` option. Many thanks to Philippe Chataignon for the significant PR. For example:

```R
DT = data.table(A=rep(1:2,each=100), B=rep(1:4,each=25))
fwrite(DT, "data.csv") # 804 bytes
fwrite(DT, "data.csv.gz") # 74 bytes
identical(DT, fread("data.csv.gz"))
DT = data.table(A=rep(1:2, 100e6), B=rep(1:4, 50e6))
fwrite(DT, "data.csv") # 763MB; 1.3s
fwrite(DT, "data.csv.gz") # 2MB; 1.6s
identical(fread("data.csv.gz"), DT)
```

4. Assigning to one item of a list column no longer requires the RHS to be wrapped with `list` or `.()`, [#950](https://github.com/Rdatatable/data.table/issues/950).
Expand Down

0 comments on commit aa8da4b

Please sign in to comment.