mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-08 05:52:55 +00:00
Currently, whenever a page version is needed from an image or delta layer, we open the file and read and parse the bookfile headers. That's pretty expensive. To reduce the overhead, introduce a cache of open file descriptors, and use that to cache the Book objects so that we don't need to read the metadata on every access.
52 lines
1.6 KiB
TOML
52 lines
1.6 KiB
TOML
[package]
|
|
name = "pageserver"
|
|
version = "0.1.0"
|
|
authors = ["Stas Kelvich <stas@zenith.tech>"]
|
|
edition = "2018"
|
|
|
|
[dependencies]
|
|
bookfile = { git = "https://github.com/zenithdb/bookfile.git", branch="generic-readext" }
|
|
chrono = "0.4.19"
|
|
rand = "0.8.3"
|
|
regex = "1.4.5"
|
|
bytes = { version = "1.0.1", features = ['serde'] }
|
|
byteorder = "1.4.3"
|
|
futures = "0.3.13"
|
|
hyper = "0.14"
|
|
lazy_static = "1.4.0"
|
|
log = "0.4.14"
|
|
clap = "2.33.0"
|
|
daemonize = "0.4.1"
|
|
tokio = { version = "1.11", features = ["process", "macros", "fs", "rt", "io-util"] }
|
|
postgres-types = { git = "https://github.com/zenithdb/rust-postgres.git", rev="9eb0dbfbeb6a6c1b79099b9f7ae4a8c021877858" }
|
|
postgres-protocol = { git = "https://github.com/zenithdb/rust-postgres.git", rev="9eb0dbfbeb6a6c1b79099b9f7ae4a8c021877858" }
|
|
postgres = { git = "https://github.com/zenithdb/rust-postgres.git", rev="9eb0dbfbeb6a6c1b79099b9f7ae4a8c021877858" }
|
|
routerify = "2"
|
|
anyhow = "1.0"
|
|
crc32c = "0.6.0"
|
|
thiserror = "1.0"
|
|
hex = { version = "0.4.3", features = ["serde"] }
|
|
tar = "0.4.33"
|
|
humantime = "2.1.0"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1"
|
|
toml = "0.5"
|
|
scopeguard = "1.1.0"
|
|
rust-s3 = { version = "0.27.0-rc4", features = ["no-verify-ssl"] }
|
|
async-trait = "0.1"
|
|
const_format = "0.2.21"
|
|
tracing = "0.1.27"
|
|
signal-hook = {version = "0.3.10", features = ["extended-siginfo"] }
|
|
url = "2"
|
|
nix = "0.23"
|
|
once_cell = "1.8.0"
|
|
|
|
postgres_ffi = { path = "../postgres_ffi" }
|
|
zenith_metrics = { path = "../zenith_metrics" }
|
|
zenith_utils = { path = "../zenith_utils" }
|
|
workspace_hack = { path = "../workspace_hack" }
|
|
|
|
[dev-dependencies]
|
|
hex-literal = "0.3"
|
|
tempfile = "3.2"
|