Skip to content

Commit

Permalink
use tikv-jemalloc
Browse files Browse the repository at this point in the history
Signed-off-by: Kirill Fomichev <fanatid@ya.ru>
  • Loading branch information
fanatid committed Jan 23, 2021
1 parent 82f7fef commit 236103f
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
44 changes: 22 additions & 22 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ rdkafka = { version = "0.24.0", features = ["libz", "ssl", "zstd"], optional = t
hostname = "0.3.1"
seahash = { version = "4.0.1", optional = true }
semver = { version = "0.11.0", features = ["serde"] }
jemallocator = { version = "0.3.0", optional = true }
tikv-jemallocator = { version = "0.4.0", optional = true }
lazy_static = "1.3.0"
rlua = { git = "https://github.com/kyren/rlua", rev = "25bd7e6bffef9597466a98bfca80a3056c9e6320", optional = true }
num_cpus = "1.10.0"
Expand Down Expand Up @@ -283,7 +283,7 @@ target-armv7-unknown-linux-musleabihf = ["api", "api-client", "sources", "transf
target-armv7-unknown-linux-gnueabihf = ["api", "api-client", "sources", "transforms", "sinks", "vendor-openssl", "vendor-libz", "unix", "leveldb", "rdkafka-cmake"]

# Enables features that work only on systems providing `cfg(unix)`
unix = ["jemallocator"]
unix = ["tikv-jemallocator"]
# These are **very** useful on Cross compilations!
vendor-all = ["vendor-sasl", "vendor-openssl", "vendor-libz"]
vendor-sasl = ["rdkafka/gssapi-vendored"]
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ extern crate pest_derive;
#[cfg(feature = "vrl-cli")]
extern crate remap_cli;

#[cfg(feature = "jemallocator")]
#[cfg(feature = "tikv_jemallocator")]
#[global_allocator]
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
static ALLOC: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;

#[macro_use]
pub mod config;
Expand Down

0 comments on commit 236103f

Please sign in to comment.