Skip to content

cmds2 daemon response streams #329

@jbenet

Description

@jbenet

Suppose:

> ipfs2 add Massive1TBFile
added QmXMJ1oewy8hrru1gswxVPHS8kQs3tyjsUXBY33sJTaKeR Massive1TBFile
> ipfs2 daemon &
> ipfs2 cat QmXMJ1oewy8hrru1gswxVPHS8kQs3tyjsUXBY33sJTaKeR
...

As it stands now, the cmd lib may:

  • load up the entire file in memory before sending it to the client as a response. (it should start outputing as soon as possible, as is usual with writers.)
  • hold the entire thing in memory to pass it through the marshaler (it should either marshal subsections or disable marshaling somehow?)
  • test with a large file

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions