Skip to content

Commit

Permalink
Update jemallocator. (#3517)
Browse files Browse the repository at this point in the history
Switch back from tikv-jemallocator to jemallocator as the latter
is now the same as tikv-jemallocator.

The update also brings jemalloc to version 5.3.0, which should
give multiple percent of system level metric improvements.
  • Loading branch information
ghuls committed May 27, 2022
1 parent 682663d commit c6999fc
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion polars/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@
//! A DataFrame library naturally does a lot of heap allocations. It is recommended to use a custom
//! allocator.
//! [Mimalloc](https://crates.io/crates/mimalloc) and
//! [JeMalloc](https://crates.io/crates/tikv-jemallocator) for instance, show a significant
//! [JeMalloc](https://crates.io/crates/jemallocator) for instance, show a significant
//! performance gain in runtime as well as memory usage.
//!
//! #### Usage
Expand Down
44 changes: 22 additions & 22 deletions py-polars/Cargo.lock

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

2 changes: 1 addition & 1 deletion py-polars/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ description = "Blazingly fast DataFrame library"
mimalloc = { version = "*", default-features = false }

[target.'cfg(target_os="linux")'.dependencies]
tikv-jemallocator = { version = "0.4", features = ["disable_initial_exec_tls"] }
jemallocator = { version = "0.5", features = ["disable_initial_exec_tls"] }

[dependencies]
ahash = "0.7"
Expand Down
4 changes: 2 additions & 2 deletions py-polars/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ use crate::error::{
use crate::file::get_either_file;
use crate::prelude::{ClosedWindow, DataType, DatetimeArgs, Duration, DurationArgs, PyDataType};
use dsl::ToExprs;
#[cfg(target_os = "linux")]
use jemallocator::Jemalloc;
#[cfg(not(target_os = "linux"))]
use mimalloc::MiMalloc;
use polars::functions::{diag_concat_df, hor_concat_df};
Expand All @@ -51,8 +53,6 @@ use polars_core::export::arrow::io::ipc::read::read_file_metadata;
use polars_core::prelude::IntoSeries;
use pyo3::panic::PanicException;
use pyo3::types::{PyBool, PyDict, PyFloat, PyInt, PyString};
#[cfg(target_os = "linux")]
use tikv_jemallocator::Jemalloc;

#[global_allocator]
#[cfg(target_os = "linux")]
Expand Down

0 comments on commit c6999fc

Please sign in to comment.