Closed
Description
In IPFS repo.stat takes about 5s per call for me. I found that that the entire blockstore is read into memory every time this function is called to get the count and size:
Lines 301 to 317 in 3611043
This needs to be streamed and/or calculated once, cached, and kept up to date.