mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-15 17:32:56 +00:00
## Problem proxy params being a `HashMap<String,String>` when it contains just ``` application_name: psql database: neondb user: neondb_owner ``` is quite wasteful allocation wise. ## Summary of changes Keep the params in the wire protocol form, eg: ``` application_name\0psql\0database\0neondb\0user\0neondb_owner\0 ``` Using a linear search for the map is fast enough at small sizes, which is the normal case.
20 lines
411 B
TOML
20 lines
411 B
TOML
[package]
|
|
name = "pq_proto"
|
|
version = "0.1.0"
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[dependencies]
|
|
bytes.workspace = true
|
|
byteorder.workspace = true
|
|
itertools.workspace = true
|
|
pin-project-lite.workspace = true
|
|
postgres-protocol.workspace = true
|
|
rand.workspace = true
|
|
tokio.workspace = true
|
|
tracing.workspace = true
|
|
thiserror.workspace = true
|
|
serde.workspace = true
|
|
|
|
workspace_hack.workspace = true
|