Use default allocator as a default (#11293)
This commit is contained in:
parent
aeff468e9c
commit
092869d1fa
3 changed files with 7 additions and 7 deletions
|
@ -61,7 +61,7 @@ languages.workspace = true
|
|||
log.workspace = true
|
||||
markdown_preview.workspace = true
|
||||
menu.workspace = true
|
||||
mimalloc = "0.1"
|
||||
mimalloc = { version = "0.1", optional = true }
|
||||
nix = {workspace = true, features = ["pthread"] }
|
||||
node_runtime.workspace = true
|
||||
notifications.workspace = true
|
||||
|
|
|
@ -24,7 +24,6 @@ use language::LanguageRegistry;
|
|||
use log::LevelFilter;
|
||||
|
||||
use assets::Assets;
|
||||
use mimalloc::MiMalloc;
|
||||
use node_runtime::RealNodeRuntime;
|
||||
use parking_lot::Mutex;
|
||||
use release_channel::AppCommitSha;
|
||||
|
@ -56,8 +55,9 @@ use zed::{
|
|||
OpenListener, OpenRequest,
|
||||
};
|
||||
|
||||
#[cfg(feature = "mimalloc")]
|
||||
#[global_allocator]
|
||||
static GLOBAL: MiMalloc = MiMalloc;
|
||||
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
|
||||
|
||||
fn fail_to_launch(e: anyhow::Error) {
|
||||
App::new().run(move |cx| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue