-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement a streaming ls api #4882
Comments
You can also say that streaming is only supported for a single directory input, no? |
Just added some performance measurements for a big 1.2M file sharded directory over at tesserai/iptf#2 (comment) |
I'm currently thinking:
That way, we don't change the output format based on the number of inputs. |
I'm not deeply familiar with this interface, but what you've outlined certainly sounds reasonable |
(fixed in #5611) |
Currently, when listing large directories, the file list needs to be buffered in memory. This is fine for ~50K files but likely won't work well for ~1M files (in a single directory).
Unfortunately,
ipfs ls
accepts multiple arguments. If we want to stream back results, we'll have to somehow group them by directory (hopefully without sending too much extra data).The text was updated successfully, but these errors were encountered: