Skip to content

Add jemalloc feature to force jemalloc as the memory allocator #277

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@ bundled = ["libduckdb-sys/bundled"]
httpfs = ["libduckdb-sys/httpfs", "bundled"]
json = ["libduckdb-sys/json", "bundled"]
parquet = ["libduckdb-sys/parquet", "bundled"]
jemalloc = ["libduckdb-sys/jemalloc", "bundled"]
vtab = []
vtab-loadable = ["vtab", "duckdb-loadable-macros"]
vtab-excel = ["vtab", "calamine"]
vtab-arrow = ["vtab", "num"]
appender-arrow = ["vtab-arrow"]
vtab-full = ["vtab-excel", "vtab-arrow", "appender-arrow"]
extensions-full = ["httpfs", "json", "parquet", "vtab-full"]
extensions-full = ["httpfs", "json", "parquet", "jemalloc", "vtab-full"]
buildtime_bindgen = ["libduckdb-sys/buildtime_bindgen"]
modern-full = ["chrono", "serde_json", "url", "r2d2", "uuid", "polars"]
polars = ["dep:polars"]
Expand Down
3 changes: 2 additions & 1 deletion libduckdb-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ buildtime_bindgen = ["bindgen", "pkg-config", "vcpkg"]
httpfs = ["bundled"]
json = ["bundled"]
parquet = ["bundled"]
extensions-full = ["httpfs", "json", "parquet"]
jemalloc = ["bundled"]
extensions-full = ["httpfs", "json", "parquet", "jemalloc"]

[dependencies]

Expand Down
3 changes: 3 additions & 0 deletions libduckdb-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ mod build_bundled {
#[cfg(feature = "json")]
add_extension(&mut cfg, &manifest, "json", &mut cpp_files, &mut include_dirs);

#[cfg(feature = "jemalloc")]
add_extension(&mut cfg, &manifest, "jemalloc", &mut cpp_files, &mut include_dirs);

// duckdb/tools/pythonpkg/setup.py
cfg.define("DUCKDB_EXTENSION_AUTOINSTALL_DEFAULT", "1");
cfg.define("DUCKDB_EXTENSION_AUTOLOAD_DEFAULT", "1");
Expand Down
Binary file modified libduckdb-sys/duckdb.tar.gz
Binary file not shown.
3,561 changes: 3,560 additions & 1 deletion libduckdb-sys/src/bindgen_bundled_version.rs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion libduckdb-sys/update_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# List of extensions' sources to grab. Technically, these sources will be compiled
# but not included in the final build unless they're explicitly enabled.
EXTENSIONS = ["parquet", "json", "httpfs"]
EXTENSIONS = ["parquet", "json", "httpfs", "jemalloc"]

# Clear the duckdb directory
try:
Expand Down