Skip to content

Current readall/sendall paradigm bad... #39

Description

@von

Example below is a snippet sending a big attachment via Gmail, the whole thing gets read into memory and then written. Rewrite so we write each buffer as it is read.

PerProxy: ...returned 8192 bytes
PerProxy: recv()...
PerProxy: ...returned 8191 bytes
PerProxy: recv()...
PerProxy: ...returned 8192 bytes
PerProxy: recv()...
PerProxy: ...returned 8192 bytes
PerProxy: recv()...
PerProxy: ...returned 1 bytes
PerProxy: recv()...
PerProxy: ...returned 4574 bytes
PerProxy: recv()...
PerProxy: ...returned None
PerProxy: Writing 6132190 bytes to server at mail.google.com:443

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions