rust-postgres/postgres-protocol
Steven Fackler db462eb018 Avoid copies in copy_in
copy_in data was previously copied ~3 times - once into the copy_in
buffer, once more to frame it into a CopyData frame, and once to write
that into the stream.

Our Codec is now a bit more interesting. Rather than just writing out
pre-encoded data, we can also send along unencoded CopyData so they can
be framed directly into the stream output buffer. In the future we can
extend this to e.g. avoid allocating for simple commands like Sync.

This also allows us to directly pass large copy_in input directly
through without rebuffering it.
2019-06-25 18:54:17 -07:00
..
src Avoid copies in copy_in 2019-06-25 18:54:17 -07:00
Cargo.toml Upgrade fallible-iterator 2019-03-10 16:32:28 -07:00
CHANGELOG.md Release postgres-protocol v0.4.0 2019-03-05 19:09:48 -08:00
LICENSE-APACHE Move postgres-protocol in-tree 2017-03-12 13:46:01 -07:00
LICENSE-MIT Move postgres-protocol in-tree 2017-03-12 13:46:01 -07:00