Compare commits

...
5 changed files with 14 additions and 6 deletions

No files matched your search

+1
View File
@@ -0,0 +1 @@
Moved the `jemalloc` feature out of `standard` (and `full`) into `default` so builders can more easily swap allocators. Builders using `--no-default-features` with the `full` or `standard` feature should now explicitly select an allocator (either `jemalloc` or `mimalloc`). Contributed by @Jade
+3 -1
View File
@@ -1,7 +1,9 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended", "replacements:all", ":semanticCommitTypeAll(chore)", "helpers:pinGitHubActionDigests"],
"dependencyDashboard": true,
"dependencyDashboard": {
"enabled": true
},
"osvVulnerabilityAlerts": true,
"lockFileMaintenance": {
"enabled": true,
+4 -4
View File
@@ -38,12 +38,12 @@ mimalloc = [
]
jemalloc_conf = []
jemalloc_prof = [
"tikv-jemalloc-sys/profiling",
"tikv-jemalloc-sys?/profiling",
]
jemalloc_stats = [
"tikv-jemalloc-sys/stats",
"tikv-jemalloc-ctl/stats",
"tikv-jemallocator/stats",
"tikv-jemalloc-sys?/stats",
"tikv-jemalloc-ctl?/stats",
"tikv-jemallocator?/stats",
]
perf_measurements = []
release_max_log_level = [
+1 -1
View File
@@ -48,6 +48,7 @@ assets = [
[features]
default = [
"standard",
"jemalloc",
"ring",
"bindgen-runtime", # replace with bindgen-static on alpine
]
@@ -57,7 +58,6 @@ standard = [
"element_hacks",
"gzip_compression",
"io_uring",
"jemalloc",
"jemalloc_conf",
"journald",
"media_thumbnail",
+5
View File
@@ -32,6 +32,11 @@ pub fn run() -> Result<()> {
pub fn run_with_args(args: &Args) -> Result<()> {
// Spawn deadlock detection thread
deadlock::spawn();
#[cfg(not(any(feature = "jemalloc", feature = "mimalloc")))]
conduwuit_core::warn!(
"Your build configuration does not have a non-system allocator enabled. This may result \
in decreased performance."
);
// Because we're not using rustls default-tls, we have to initialise a TLS
// provider