Skip to content

Commit

Permalink
Disable memory buffer and non-blocking async file io.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyber-pc committed Jan 23, 2025
1 parent 851da82 commit 1c6f00c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/file_io.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

// Size of buffer for non-blocking save, this size will divided into ASYNC_FILE_IO_BLOCKING_MAX_QUEUE_ITEMS.
// Can set by zeros to save memory and don't use non-block save
static constexpr unsigned long long ASYNC_FILE_IO_WRITE_QUEUE_BUFFER_SIZE = 8 * 1024 * 1024 * 1024ULL; // Set 0 if don't need non-blocking save
static constexpr unsigned long long ASYNC_FILE_IO_WRITE_QUEUE_BUFFER_SIZE = 0;//8 * 1024 * 1024 * 1024ULL; // Set 0 if don't need non-blocking save
static constexpr int ASYNC_FILE_IO_BLOCKING_MAX_QUEUE_ITEMS_2FACTOR = 10;
static constexpr int ASYNC_FILE_IO_MAX_QUEUE_ITEMS_2FACTOR = 4;
static constexpr int ASYNC_FILE_IO_MAX_FILE_NAME = 64;
Expand Down

0 comments on commit 1c6f00c

Please sign in to comment.