Skip to content

Commit 6d02b05

Browse files
author
Lewis Cowles
authored
Make larger block size
The queue is inherently serial, not a queue data structure, and the code has no concurrency / parallelization added, but making the block-size larger should increase supported file-size & use disk cache more efficiently.
1 parent 12c19e3 commit 6d02b05

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/cache.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515

1616
/**
1717
* \brief Data file block size
18-
* \details We set it to 1024*1024 = 1048576 bytes
18+
* \details We set it to 1024*1024*8 = 8MiB
1919
*/
20-
#define DATA_BLK_SZ 1048576
20+
#define DATA_BLK_SZ 8388608
2121

2222
/**
2323
* \brief Maximum segment block count
2424
* \details This is set to 1024*1024*1024 = 1 GiB, which allows the user to
25-
* access a 1TB file.
25+
* access a 8TiB file.
2626
*/
2727
#define MAX_SEGBC 1073741824
2828

0 commit comments

Comments
 (0)