Each file object (FFOBJID, FIL, DIR) contains a 512 byte buffer cache for file operations. By setting FF_FS_TINY to 1 in ffconf.h this buffer is removed and a global buffer is used. This will make the FatFS file IO a bit easier on memory for user apps.
Acceptance Criteria:
- The code is not significantly slower after the change
- No other issues are reported
Benchmarking:
The BASIC file benchm9,bas will run a read/write operation. Base timings before the mod are:
- Write: 29.85s
- Read: 14.2s
Each file object (FFOBJID, FIL, DIR) contains a 512 byte buffer cache for file operations. By setting FF_FS_TINY to 1 in ffconf.h this buffer is removed and a global buffer is used. This will make the FatFS file IO a bit easier on memory for user apps.
Acceptance Criteria:
Benchmarking:
The BASIC file benchm9,bas will run a read/write operation. Base timings before the mod are: