Skip to content

Commit 44ade59

Browse files
committed
Switch to jemallocator
1 parent 548d75d commit 44ade59

File tree

4 files changed

+39
-7
lines changed

4 files changed

+39
-7
lines changed

CHANGELOG.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
* Now keeping a change log in the `CHANGELOG.md` file.
1414
* Created Dockerfile for creation of Container Images
1515
* Added a Sequence diagram
16-
* Added the possibility to connect `via` upstream Proxy (https://github.com/git001/tls-proxy-tunnel/commit/5737e29743d814c81fcd91a62ff660f3899a5e08)
17-
* Add simple HTTP/1.1 health check (https://github.com/git001/tls-proxy-tunnel/commit/1f533cc8fb576ff8e4bab4027dc7ebc2662ccec6)
18-
* Add parsing and getting of environment variables (https://github.com/git001/tls-proxy-tunnel/commit/8e01d2cc78dd1895583517f596982e64df51683a)
19-
* Add simple k6 tests (https://github.com/git001/tls-proxy-tunnel/commit/4fd5eee5c9b2e18e0a9b53865309080b19c395b2)
20-
* Add Global connection counter (https://github.com/git001/tls-proxy-tunnel/commit/ec8db36d9365dfc3970ac53effa2ac77a7be0f8f)
21-
* Add Arc Semaphore to limit clients ( https://github.com/git001/tls-proxy-tunnel/commit/2a9c5f1353af131d118bee2077848791a95c9fc7 , https://github.com/git001/tls-proxy-tunnel/commit/9adb9b999152d013de27a1851d142e75336101ba)
22-
* Fix Global connection counter for health checks
16+
* Added the possibility to connect `via` upstream Proxy [5737e29](https://github.com/git001/tls-proxy-tunnel/commit/5737e29743d814c81fcd91a62ff660f3899a5e08)
17+
* Add simple HTTP/1.1 health check [1f533cc](https://github.com/git001/tls-proxy-tunnel/commit/1f533cc8fb576ff8e4bab4027dc7ebc2662ccec6)
18+
* Add parsing and getting of environment variables [8e01d2c](https://github.com/git001/tls-proxy-tunnel/commit/8e01d2cc78dd1895583517f596982e64df51683a)
19+
* Add simple k6 tests [4fd5eee](https://github.com/git001/tls-proxy-tunnel/commit/4fd5eee5c9b2e18e0a9b53865309080b19c395b2)
20+
* Add Global connection counter [ec8db36](https://github.com/git001/tls-proxy-tunnel/commit/ec8db36d9365dfc3970ac53effa2ac77a7be0f8f)
21+
* Add Arc Semaphore to limit clients [2a9c5f1]( https://github.com/git001/tls-proxy-tunnel/commit/2a9c5f1353af131d118bee2077848791a95c9fc7 , [9adb9b9]https://github.com/git001/tls-proxy-tunnel/commit/9adb9b999152d013de27a1851d142e75336101ba)
22+
* Fix Global connection counter for health checks [548d75d](https://github.com/git001/tls-proxy-tunnel/commit/548d75ded78941120122c41619c2827549aeff58)
23+
* Switch to [jemallocator](https://crates.io/crates/jemallocator)
2324

2425
### Changed
2526

Cargo.lock

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,6 @@ tls-parser = "0.11.0"
3434
tokio = { version = "1.38.0", features = ["full"] }
3535
tokio-util = { version = "0.7.11", features = ["full"] }
3636
url = { version = "2.5.2", features = ["serde"] }
37+
38+
[target.'cfg(not(target_env = "msvc"))'.dependencies]
39+
tikv-jemallocator = "0.5"

src/main.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#[cfg(not(target_env = "msvc"))]
2+
use tikv_jemallocator::Jemalloc;
3+
4+
#[cfg(not(target_env = "msvc"))]
5+
#[global_allocator]
6+
static GLOBAL: Jemalloc = Jemalloc;
7+
18
mod config;
29
mod servers;
310
mod upstreams;

0 commit comments

Comments
 (0)