ipfs-api-mount icon indicating copy to clipboard operation
ipfs-api-mount copied to clipboard

Poor performance on large directory listings

Open RubenKelevra opened this issue 4 years ago • 5 comments

I have some poor performance on large directories (10k files). I filed a bugreport on go-ipfs, but this API mount seems to do more calls to ipfs than just a ipfs ls <cid> for the ls -l in the filesystem.

After an initial extremely long-running ipfs ls <cid> the second call will end up taking just 2 seconds.

But ipfs-api-mount still runs extremely long, and seems to cache nothing, a second call of ls -l takes the same amount of time:

real    5m5,906s
user    0m0,298s
sys     0m0,493s

The ipfs-daemon also struggles to complete the requests burning a lot of CPU time for a simple ls in the mounted folder.

RubenKelevra avatar Mar 03 '20 21:03 RubenKelevra