Skip to content

Function lfs_dir_read read from same memory twice #1148

@dsabala

Description

@dsabala

Hey,

I suspect this is due to design constraints (low RAM usage), but why does lfs_dir_read read the same blocks / pages twice? I'm trying to speed up my naive ls shell utility (listing files in directory) and I'm tracing calls to the .read callback.

00:00:04.936 lfs_dir_read(0x2000185c, 0x200003c0, 0x200047e4)
00:00:04.936 Read start block 1001 off 4096
00:00:04.936 Read start block 1001 off 2048
00:00:04.937 Read start block 1001 off 0
00:00:04.937 Read start block 1001 off 4096
00:00:04.938 Read start block 1001 off 2048
00:00:04.939 Read start block 1001 off 0
00:00:04.939 lfs_dir_read -> 1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions