Skip to content

enable FF_USE_FASTSEEK #4097

@michael-betz

Description

@michael-betz

This might be more of an esp-idf feature request, but Arduino is also affected as the pre-compiled esp-idf libraries are used and there is no easy way to modify them.

Without FF_USE_FASTSEEK, seeking backwards or forwards on a FAT32 FS takes hundreds of ms.

This shows up, for example, when streaming animations from a SD card and frames need to be shown in a non-sequential way.

Enabling FF_USE_FASTSEEK costs ~64 words of memory per open file and reduces seek time by a factor of ~100.

I tested this by overriding the ff.c file with my patched version:
michael-betz/espirgbani_pio@2c957e3

See also:
http://www.elm-chan.org/fsw/ff/doc/lseek.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: StaleIssue is stale stage (outdated/stuck)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions