Increased default lookahead to 512 blocks

Because lookahead is stored efficiently as a bit-vector, this only
requires a ram increase of 48 bytes (2.1% of benchmark), but decreases
the SD benchmark runtime cost by 32 seconds (21.9% of benchmark).

Note this is unimportant on devices with byte-reads such as NOR flash.
pull/5538/head
Christopher Haster 2017-07-23 15:12:13 -05:00
parent 2e9f87d435
commit c9117d8cb5
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@
},
"lookahead": {
"macro_name": "MBED_LFS_LOOKAHEAD",
"value": 128,
"value": 512,
"help": "Number of blocks to lookahead during block allocation. A larger lookahead reduces the number of passes required to allocate a block. The lookahead buffer requires only 1 bit per block so it can be quite large with little ram impact. Should be a multiple of 32."
}
}