[utils] adding default chunk size to shuffle.h

This commit is contained in:
Al
2017-04-02 13:51:45 -04:00
parent 96e1ca5e89
commit ed05aaabb1

View File

@@ -3,6 +3,11 @@
#include <stdlib.h>
#include <stdbool.h>
#include <stdint.h>
#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);