Skip to content

Improve ffind() performance when searching files in subfolders #72

@andbararm

Description

@andbararm

When doing a wildcard search in a sub-folder:

  ffind( "directory\\file_42*", &fs_info ) ;

the time it takes to find a hit takes considerably longer than when first changing the current directory to the folder ffind() shall browse:

  fchdir( "directory" ) ;
  ffind( "file_42*", &fs_info ) ;

When ffind() looks in a sub-folder as in the first example, one can see in the Event Recorder debug output of the FileSystem library a "PathProcessing" for each entry in the folder looked at, but always with the same path. It seems, the library enters and leaves the sub-folder for every checked file entry in there. So, could there be some room for optimization?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestfilesystemIssue affecting the MDK-Middleware filesystem component

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions