Skip to content

Commit

Permalink
feat: enable jemalloc by default
Browse files Browse the repository at this point in the history
  • Loading branch information
0xRichardH committed Apr 5, 2024
1 parent 49203b1 commit 0951cef
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
23 changes: 22 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[package]
name = "pingora-gateway"
version = "0.1.0"
version = "0.1.1"
authors = ["Richard Hao <[email protected]>"]
license = "MIT"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand All @@ -9,6 +11,7 @@ edition = "2021"
async-trait = "0.1.79"
env_logger = "0.11.3"
http = "1.1.0"
jemallocator = "0.5.4"
log = "0.4.21"
pingora = { version = "0.1.0", features = ["proxy"] }
serde = { version = "1.0.197", features = ["derive"] }
Expand Down
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#[global_allocator]
static GLOBAL: jemallocator::Jemalloc = jemallocator::Jemalloc;

use pingora::server::{configuration::Opt, Server};
use pingora_gateway::{
config,
Expand Down

0 comments on commit 0951cef

Please sign in to comment.