phatina / simple-mtpfs

Simple MTP fuse filesystem driver.
GNU General Public License v2.0
371 stars 45 forks source link

Support for READDIRPLUS #75

Open alexzeitgeist opened 4 years ago

alexzeitgeist commented 4 years ago

Hello,

When you try list a directory containing thousands of files (such as CAMERA), simple-mtpfs would do a fuse LOOKUP on every single file contained in that directory, resulting in a noticable delay. What's more, the result is not cached, so time you list that directory again directory it'll cause the delay.

Have you considered implementing a NFS-like READDIRPLUS, which combines the functionality of the READDIR and LOOKUP operations? To see the difference in speed, compare simple-mtpfs with go-mtpfs (which relies on go-fuse), where even large directories hardly take longer than 1s to list.

Cheers!

phatina commented 4 years ago

Hi, I haven't had time for this project for quite some time :( If you are willing to help, patches are welcome :) Sorry, I wasn't a help here.