chore: Use mimalloc; 2x faster than glib malloc

This commit is contained in:
Michael Aaron Murphy 2022-03-29 13:16:52 +02:00 committed by Michael Murphy
parent 846c4106f8
commit 34c75cc2b9
3 changed files with 25 additions and 0 deletions

19
Cargo.lock generated
View file

@ -799,6 +799,15 @@ version = "0.2.121"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "efaa7b300f3b5fe8eb6bf21ce3895e1751d9665086af2d64b42f19701015ff4f"
[[package]]
name = "libmimalloc-sys"
version = "0.1.24"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7705fc40f6ed493f73584abbb324e74f96b358ff60dfe5659a0f8fc12c590a69"
dependencies = [
"cc",
]
[[package]]
name = "locale_config"
version = "0.3.0"
@ -869,6 +878,15 @@ dependencies = [
"autocfg",
]
[[package]]
name = "mimalloc"
version = "0.1.28"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b0dfa131390c2f6bdb3242f65ff271fcdaca5ff7b6c08f28398be7f2280e3926"
dependencies = [
"libmimalloc-sys",
]
[[package]]
name = "mime"
version = "0.3.16"
@ -1153,6 +1171,7 @@ name = "pop-launcher-bin"
version = "1.2.0"
dependencies = [
"dirs 4.0.0",
"mimalloc",
"pop-launcher-plugins",
"pop-launcher-service",
"tokio",