You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I create a large file (about 500kB) in LFS and then modify some bytes in this file, the LFS takes too long time (about 4 seconds) to complete it, it's really a long time for most of the bare-metal systems I think, is there any way to improve it?
Here is my config:
static const struct lfs_config lfs_cfg =
{
.read = lfs_low_read,
.prog = lfs_low_prog,
.erase = lfs_low_erase,
.sync = lfs_low_sync,
.block_size = 512,
.block_count = 8192,
.read_size = 128,
.prog_size = 256,
.cache_size = 512,
.lookahead_size = 16,
.block_cycles = 300,
};
The text was updated successfully, but these errors were encountered:
Unfortunately there's not really a workaround other than restructuring your data to avoid random writes, either by appended data like a log, or by splitting the data up into multiple files.
When I create a large file (about 500kB) in LFS and then modify some bytes in this file, the LFS takes too long time (about 4 seconds) to complete it, it's really a long time for most of the bare-metal systems I think, is there any way to improve it?
Here is my config:
static const struct lfs_config lfs_cfg =
{
.read = lfs_low_read,
.prog = lfs_low_prog,
.erase = lfs_low_erase,
.sync = lfs_low_sync,
.block_size = 512,
.block_count = 8192,
.read_size = 128,
.prog_size = 256,
.cache_size = 512,
.lookahead_size = 16,
.block_cycles = 300,
};
The text was updated successfully, but these errors were encountered: