rust-postgres/postgres-native-tls
Petros Angelatos ca6d4b8162 tokio-postgres: buffer sockets to avoid excessive syscalls
The current implementation forwards all read requests to the operating
system through the socket causing excessive system calls. The effect is
magnified when the underlying Socket is wrapped around a TLS
implementation.

This commit changes the underlying socket to be read-buffered by default
with a buffer size of 16K, following the implementation of the official
client.

Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
2021-05-24 17:58:30 +02:00
..
src tokio-postgres: buffer sockets to avoid excessive syscalls 2021-05-24 17:58:30 +02:00
Cargo.toml Relese postgres-native-tls v0.5.0 2020-12-25 09:18:12 -05:00
CHANGELOG.md Relese postgres-native-tls v0.5.0 2020-12-25 09:18:12 -05:00
LICENSE-APACHE Drop tokio- prefix from TLS crates 2019-06-29 16:07:56 -07:00
LICENSE-MIT Drop tokio- prefix from TLS crates 2019-06-29 16:07:56 -07:00