We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdb7da1 commit 601c876Copy full SHA for 601c876
apps/oxlint/src/lib.rs
@@ -33,6 +33,9 @@ mod generated {
33
#[cfg(all(feature = "napi", target_pointer_width = "64", target_endian = "little"))]
34
mod js_plugins;
35
36
+// Use Mimalloc as the global allocator if `--features allocator` is enabled.
37
+// Mimalloc has better performance, but this is feature-gated because it's slow to compile.
38
+// `--features allocator` is only used in release builds.
39
#[cfg(all(feature = "allocator", not(miri), not(target_family = "wasm")))]
40
#[global_allocator]
41
static GLOBAL: mimalloc_safe::MiMalloc = mimalloc_safe::MiMalloc;
0 commit comments