Skip to content

refactor I/O to do more buffering #3887

@Keno

Description

@Keno

Noting down ideas for the I/O refactor that I discussed with @JeffBezanson (do add anything I forgot).

  • Instead of having the basic I/O operate on single bytes, have a new interface that can read/write arrays of bytes (probably also nb_available)
  • All writes are buffered, with the buffer flushed when we enter the event loop next (or explicitly once we reach the system network buffer limit)
  • This new BufferedIO type would be the one to be extended for things like endianness, text-encodings, etc. rather than the underlying stream.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ioInvolving the I/O subsystem: libuv, read, write, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions