File: disable-jemallocator.diff

package info (click to toggle)
rust-fd-find 10.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,008 kB
  • sloc: sh: 156; makefile: 38
file content (55 lines) | stat: -rw-r--r-- 2,210 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Index: fd-find/Cargo.toml
===================================================================
--- fd-find.orig/Cargo.toml
+++ fd-find/Cargo.toml
@@ -44,13 +44,13 @@ repository = "sharkdp/fd"
 repository = "sharkdp/fd"
 
 [features]
-base = ["use-jemalloc"]
+#base = ["use-jemalloc"]
 completions = ["clap_complete"]
 default = [
-    "use-jemalloc",
+#    "use-jemalloc",
     "completions",
 ]
-use-jemalloc = ["tikv-jemallocator"]
+#use-jemalloc = ["tikv-jemallocator"]
 
 [[bin]]
 name = "fd"
@@ -139,9 +139,9 @@ version = "3.3"
 [build-dependencies.version_check]
 version = "0.9"
 
-[target.'cfg(all(not(windows), not(target_os = "android"), not(target_os = "macos"), not(target_os = "freebsd"), not(target_os = "openbsd"), not(target_os = "illumos"), not(all(target_env = "musl", target_pointer_width = "32")), not(target_arch = "riscv64")))'.dependencies.tikv-jemallocator]
-version = "0.6.0"
-optional = true
+#[target.'cfg(all(not(windows), not(target_os = "android"), not(target_os = "macos"), not(target_os = "freebsd"), not(target_os = "openbsd"), not(target_os = "illumos"), not(all(target_env = "musl", target_pointer_width = "32")), not(target_arch = "riscv64")))'.dependencies.tikv-jemallocator]
+#version = "0.6.0"
+#optional = true
 
 [target.'cfg(all(unix, not(target_os = "redox")))'.dependencies.libc]
 version = "0.2"
Index: fd-find/src/main.rs
===================================================================
--- fd-find.orig/src/main.rs
+++ fd-find/src/main.rs
@@ -33,7 +33,7 @@ use crate::filetypes::FileTypes;
 use crate::filter::OwnerFilter;
 use crate::filter::TimeFilter;
 use crate::regex_helper::{pattern_has_uppercase_char, pattern_matches_strings_with_leading_dot};
-
+/*
 // We use jemalloc for performance reasons, see https://github.com/sharkdp/fd/pull/481
 // FIXME: re-enable jemalloc on macOS, see comment in Cargo.toml file for more infos
 // This has to be kept in sync with the Cargo.toml file section that declares a
@@ -51,6 +51,7 @@ use crate::regex_helper::{pattern_has_up
 ))]
 #[global_allocator]
 static ALLOC: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
+ */
 
 // vivid --color-mode 8-bit generate molokai
 const DEFAULT_LS_COLORS: &str = "