Skip to content

Commit ddcb836

Browse files
committed
update change log
1 parent 43fb0e4 commit ddcb836

File tree

12 files changed

+30
-30
lines changed

12 files changed

+30
-30
lines changed

ChangeLog

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Version 0.1.5
2-
* Add global parameters for serialization arguments
2+
* Add global parameters for serialization arguments, see `Global Options for qs2` in the README / vignette
33

4-
Version 0.1.4
4+
Version 0.1.4 (2024-12-12)
55
* Fix for decompression error edge case (https://github.com/qsbase/qs2/issues/7)
66

77
Version 0.1.3 (2024-12-02)

R/RcppExports.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
22
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
33

4-
qs_save <- function(object, file, compress_level = getOption("qs2.compress_level", 1L), shuffle = getOption("qs2.shuffle", TRUE), nthreads = getOption("qs2.nthreads", 1L)) {
4+
qs_save <- function(object, file, compress_level = getOption("qs2.compress_level", 3L), shuffle = getOption("qs2.shuffle", TRUE), nthreads = getOption("qs2.nthreads", 1L)) {
55
invisible(.Call(`_qs2_qs_save`, object, file, compress_level, shuffle, nthreads))
66
}
77

8-
qs_serialize <- function(object, compress_level = getOption("qs2.compress_level", 1L), shuffle = getOption("qs2.shuffle", TRUE), nthreads = getOption("qs2.nthreads", 1L)) {
8+
qs_serialize <- function(object, compress_level = getOption("qs2.compress_level", 3L), shuffle = getOption("qs2.shuffle", TRUE), nthreads = getOption("qs2.nthreads", 1L)) {
99
invisible(.Call(`_qs2_qs_serialize`, object, compress_level, shuffle, nthreads))
1010
}
1111

@@ -17,11 +17,11 @@ qs_deserialize <- function(input, validate_checksum = getOption("qs2.validate_ch
1717
.Call(`_qs2_qs_deserialize`, input, validate_checksum, nthreads)
1818
}
1919

20-
qd_save <- function(object, file, compress_level = getOption("qs2.compress_level", 1L), shuffle = getOption("qs2.shuffle", TRUE), warn_unsupported_types = getOption("qs2.warn_unsupported_types", TRUE), nthreads = getOption("qs2.nthreads", 1L)) {
20+
qd_save <- function(object, file, compress_level = getOption("qs2.compress_level", 3L), shuffle = getOption("qs2.shuffle", TRUE), warn_unsupported_types = getOption("qs2.warn_unsupported_types", TRUE), nthreads = getOption("qs2.nthreads", 1L)) {
2121
invisible(.Call(`_qs2_qd_save`, object, file, compress_level, shuffle, warn_unsupported_types, nthreads))
2222
}
2323

24-
qd_serialize <- function(object, compress_level = getOption("qs2.compress_level", 1L), shuffle = getOption("qs2.shuffle", TRUE), warn_unsupported_types = getOption("qs2.warn_unsupported_types", TRUE), nthreads = getOption("qs2.nthreads", 1L)) {
24+
qd_serialize <- function(object, compress_level = getOption("qs2.compress_level", 3L), shuffle = getOption("qs2.shuffle", TRUE), warn_unsupported_types = getOption("qs2.warn_unsupported_types", TRUE), nthreads = getOption("qs2.nthreads", 1L)) {
2525
.Call(`_qs2_qd_serialize`, object, compress_level, shuffle, warn_unsupported_types, nthreads)
2626
}
2727

@@ -57,7 +57,7 @@ internal_is_utf8_locale <- function(size) {
5757
.Call(`_qs2_internal_is_utf8_locale`, size)
5858
}
5959

60-
zstd_compress_raw <- function(data, compress_level = getOption("qs2.compress_level", 1L)) {
60+
zstd_compress_raw <- function(data, compress_level = getOption("qs2.compress_level", 3L)) {
6161
.Call(`_qs2_zstd_compress_raw`, data, compress_level)
6262
}
6363

R/qx_functions.R

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
shared_params_save <- function(file_output=TRUE, warn_unsupported_types=FALSE) {
22
c('@param object The object to save.',
33
'@param file The file name/path.'[file_output],
4-
'@param compress_level The compression level used (default: getOption("qs2.compress_level", 1L)).',
4+
'@param compress_level The compression level used (default: getOption("qs2.compress_level", 3L)).',
55
'',
66
'The maximum and minimum possible values depend on the version of the ZSTD library used.',
77
'As of ZSTD 1.5.6 the maximum compression level is 22, and the minimum is -131072.',
@@ -27,7 +27,7 @@ shared_params_read <- function(file_input=TRUE, use_alt_rep=FALSE) {
2727
#' Saves an object to disk using the `qs2` format.
2828
#'
2929
#' @usage qs_save(object, file,
30-
#' compress_level = getOption("qs2.compress_level", 1L),
30+
#' compress_level = getOption("qs2.compress_level", 3L),
3131
#' shuffle = getOption("qs2.shuffle", TRUE),
3232
#' nthreads = getOption("qs2.nthreads", 1L))
3333
#'
@@ -52,7 +52,7 @@ NULL
5252
#' Serializes an object to a raw vector using the `qs2` format.
5353
#'
5454
#' @usage qs_serialize(object,
55-
#' compress_level = getOption("qs2.compress_level", 1L),
55+
#' compress_level = getOption("qs2.compress_level", 3L),
5656
#' shuffle = getOption("qs2.shuffle", TRUE),
5757
#' nthreads = getOption("qs2.nthreads", 1L))
5858
#'
@@ -123,7 +123,7 @@ NULL
123123
#' Saves an object to disk using the `qdata` format.
124124
#'
125125
#' @usage qd_save(object, file,
126-
#' compress_level = getOption("qs2.compress_level", 1L),
126+
#' compress_level = getOption("qs2.compress_level", 3L),
127127
#' shuffle = getOption("qs2.shuffle", TRUE),
128128
#' warn_unsupported_types = getOption("qs2.warn_unsupported_types", TRUE),
129129
#' nthreads = getOption("qs2.nthreads", 1L))
@@ -149,7 +149,7 @@ NULL
149149
#' Serializes an object to a raw vector using the `qdata` format.
150150
#'
151151
#' @usage qd_serialize(object,
152-
#' compress_level = getOption("qs2.compress_level", 1L),
152+
#' compress_level = getOption("qs2.compress_level", 3L),
153153
#' shuffle = getOption("qs2.shuffle", TRUE),
154154
#' warn_unsupported_types = getOption("qs2.warn_unsupported_types", TRUE),
155155
#' nthreads = getOption("qs2.nthreads", 1L))
@@ -245,7 +245,7 @@ NULL
245245
#'
246246
#' Compresses to a raw vector using the zstd algorithm. Exports the main zstd compression function.
247247
#'
248-
#' @usage zstd_compress_raw(data, compress_level = getOption("qs2.compress_level", 1L))
248+
#' @usage zstd_compress_raw(data, compress_level = getOption("qs2.compress_level", 3L))
249249
#'
250250
#' @param data Raw vector to be compressed.
251251
#' @param compress_level The compression level used.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ functions. You can override these defaults by setting them via R’s
183183
184184
- **qs2.compress\_level**
185185
The default compression level used when compressing data.
186-
**Default:** `1L`
186+
**Default:** `3L`
187187
188188
- **qs2.shuffle**
189189
A logical flag indicating whether to allow byte shuffling during

man/qd_save.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/qd_serialize.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/qs_save.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/qs_serialize.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/zstd_compress_raw.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/qx_functions.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
#include "qx_dump.h"
2323

2424
// qs2 format functions
25-
// [[Rcpp::export(rng = false, invisible = true, signature = {object, file, compress_level = getOption("qs2.compress_level", 1L), shuffle = getOption("qs2.shuffle", TRUE), nthreads = getOption("qs2.nthreads", 1L)})]]
25+
// [[Rcpp::export(rng = false, invisible = true, signature = {object, file, compress_level = getOption("qs2.compress_level", 3L), shuffle = getOption("qs2.shuffle", TRUE), nthreads = getOption("qs2.nthreads", 1L)})]]
2626
SEXP qs_save(SEXP object, const std::string& file, const int compress_level, const bool shuffle, const int nthreads);
2727
CVectorOut qs_serialize_impl(SEXP object, const int compress_level, const bool shuffle, const int nthreads);
28-
// [[Rcpp::export(rng = false, invisible = true, signature = {object, compress_level = getOption("qs2.compress_level", 1L), shuffle = getOption("qs2.shuffle", TRUE), nthreads = getOption("qs2.nthreads", 1L)})]]
28+
// [[Rcpp::export(rng = false, invisible = true, signature = {object, compress_level = getOption("qs2.compress_level", 3L), shuffle = getOption("qs2.shuffle", TRUE), nthreads = getOption("qs2.nthreads", 1L)})]]
2929
SEXP qs_serialize(SEXP object, const int compress_level, const bool shuffle, const int nthreads);
3030
unsigned char* c_qs_serialize(SEXP object, size_t* len, const int compress_level, const bool shuffle, const int nthreads);
3131
bool c_qs_free(void* ptr);
@@ -37,10 +37,10 @@ SEXP qs_deserialize(SEXP input, const bool validate_checksum, const int nthreads
3737
SEXP c_qs_deserialize(const unsigned char* buffer, const size_t len, const bool validate_checksum, const int nthreads);
3838

3939
// qdata format functions
40-
// [[Rcpp::export(rng = false, invisible = true, signature = {object, file, compress_level = getOption("qs2.compress_level", 1L), shuffle = getOption("qs2.shuffle", TRUE), warn_unsupported_types = getOption("qs2.warn_unsupported_types", TRUE), nthreads = getOption("qs2.nthreads", 1L)})]]
40+
// [[Rcpp::export(rng = false, invisible = true, signature = {object, file, compress_level = getOption("qs2.compress_level", 3L), shuffle = getOption("qs2.shuffle", TRUE), warn_unsupported_types = getOption("qs2.warn_unsupported_types", TRUE), nthreads = getOption("qs2.nthreads", 1L)})]]
4141
SEXP qd_save(SEXP object, const std::string& file, const int compress_level, const bool shuffle, const bool warn_unsupported_types, const int nthreads);
4242
CVectorOut qd_serialize_impl(SEXP object, const int compress_level, const bool shuffle, const bool warn_unsupported_types, const int nthreads);
43-
// [[Rcpp::export(rng = false, signature = {object, compress_level = getOption("qs2.compress_level", 1L), shuffle = getOption("qs2.shuffle", TRUE), warn_unsupported_types = getOption("qs2.warn_unsupported_types", TRUE), nthreads = getOption("qs2.nthreads", 1L)})]]
43+
// [[Rcpp::export(rng = false, signature = {object, compress_level = getOption("qs2.compress_level", 3L), shuffle = getOption("qs2.shuffle", TRUE), warn_unsupported_types = getOption("qs2.warn_unsupported_types", TRUE), nthreads = getOption("qs2.nthreads", 1L)})]]
4444
SEXP qd_serialize(SEXP object, const int compress_level, const bool shuffle, const bool warn_unsupported_types, const int nthreads);
4545
unsigned char* c_qd_serialize(SEXP object, size_t* len, const int compress_level, const bool shuffle, const bool warn_unsupported_types, const int nthreads);
4646
bool c_qd_free(void* ptr);
@@ -66,7 +66,7 @@ int internal_set_blocksize(int size);
6666
int internal_is_utf8_locale(int size);
6767

6868
// standalone utility functions
69-
// [[Rcpp::export(rng = false, signature = {data, compress_level = getOption("qs2.compress_level", 1L)})]]
69+
// [[Rcpp::export(rng = false, signature = {data, compress_level = getOption("qs2.compress_level", 3L)})]]
7070
std::vector<unsigned char> zstd_compress_raw(SEXP const data, int compress_level);
7171
// [[Rcpp::export(rng = false)]]
7272
RawVector zstd_decompress_raw(SEXP const data);

0 commit comments

Comments
 (0)