From ed05aaabb1c5d5b89e72e852934251c8768715f4 Mon Sep 17 00:00:00 2001 From: Al Date: Sun, 2 Apr 2017 13:51:45 -0400 Subject: [PATCH] [utils] adding default chunk size to shuffle.h --- src/shuffle.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/shuffle.h b/src/shuffle.h index 4c1e208e..137651e5 100644 --- a/src/shuffle.h +++ b/src/shuffle.h @@ -3,6 +3,11 @@ #include #include +#include + +#define CHUNK_SIZE_MB UINT64_C(1024) * UINT64_C(1024) +#define CHUNK_SIZE_GB UINT64_C(1024) * (CHUNK_SIZE_MB) +#define DEFAULT_SHUFFLE_CHUNK_SIZE UINT64_C(2) * (CHUNK_SIZE_GB) bool shuffle_file(char *filename); bool shuffle_file_chunked(char *filename, size_t parts);