increase hint size in lfs_dir_traverse#1181
increase hint size in lfs_dir_traverse#1181zain-noman wants to merge 1 commit intolittlefs-project:masterfrom
Conversation
Tests passed ✓, Code: 17136 B (+0.0%), Stack: 1448 B (+0.0%), Structs: 812 B (+0.0%)
|
|
Hi @zain-noman, thanks for creating a PR, sorry about the late response. On one hand, I'm unlikely to merge this sort of change right now due to the current feature-freeze that allows focusing on littlefs3 (#1111, unstable). On the other hand, the main motivation for littlefs3 is performance, so this would be a good thing to consider. Let me see if I can run it in our current benchmarks (may take a while). Copying the raw numbers here (not a big issue, but .csvs are a bit easier when you don't have excel): Some aimless thoughts:
|
Hi, I was noticing an issue where the number of read calls was too high. One of the functions that was causing this was lfs_dir_traverse. It was issuing read calls for each tag it read. From the comments in pull request 621, i concluded that the sequential reads could be reduced by increasing the hint size.
I compared the number of reads before and after changing the hint size and noticed a significant reduction (from 379K to 79K). The results are compiled in the attached excel file. These results were collected using the following script
cache_dir_traverse.xlsx