Skip to content

Commit

Permalink
optimize buffer sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
shikokuchuo committed Sep 9, 2024
1 parent 6e23b46 commit 7ceb23e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# secretbase 1.0.1.9000 (development)

* Improves performance in most situations by optimizing buffer sizes, especially when hashing large files.

# secretbase 1.0.1

* Improved error message if argument 'convert' is not of logical type.
Expand Down
4 changes: 2 additions & 2 deletions src/secret.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Rf_error("'file' must be a character string")

#define SB_R_SERIAL_VER 3
#define SB_SERIAL_HEADERS 6
#define SB_BUF_SIZE 4096
#define SB_BUF_SIZE 65536

#ifdef WORDS_BIGENDIAN
# define MBEDTLS_IS_BIG_ENDIAN 1
Expand Down Expand Up @@ -111,7 +111,7 @@ typedef struct nano_buf_s {
size_t cur;
} nano_buf;

#define SB_INIT_BUFSIZE 8192
#define SB_INIT_BUFSIZE 4096
#define SB_SERIAL_VER 3
#define SB_SERIAL_THR 134217728
#define NANO_ALLOC(x, sz) \
Expand Down

0 comments on commit 7ceb23e

Please sign in to comment.