Skip to content

Commit f5a898c

Browse files
committed
README
1 parent 5544634 commit f5a898c

File tree

6 files changed

+38
-34
lines changed

6 files changed

+38
-34
lines changed

.github/setup.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,34 +80,34 @@
8080
case "${{ join(matrix.targets) }}" in
8181
*arm*linux*musl*)
8282
echo "cargo=cargo" >> $GITHUB_OUTPUT
83-
echo "features=use-jemalloc" >> $GITHUB_OUTPUT
83+
echo "features=use-mimalloc-rs" >> $GITHUB_OUTPUT
8484
;;
8585
*aarch64*linux*musl*)
8686
echo "cargo=cargo" >> $GITHUB_OUTPUT
87-
echo "features=use-jemalloc" >> $GITHUB_OUTPUT
87+
echo "features=use-mimalloc-rs" >> $GITHUB_OUTPUT
8888
;;
8989
*linux*musl*)
90-
echo "features=use-jemalloc" >> $GITHUB_OUTPUT
90+
echo "features=use-mimalloc-rs" >> $GITHUB_OUTPUT
9191
echo "cargo=cargo" >> $GITHUB_OUTPUT
9292
;;
9393
*aarch64*linux*)
94-
echo "features=use-jemalloc" >> $GITHUB_OUTPUT
94+
echo "features=use-mimalloc-rs" >> $GITHUB_OUTPUT
9595
echo "cargo=cargo" >> $GITHUB_OUTPUT
9696
;;
9797
*arm*linux*)
98-
echo "features=use-jemalloc" >> $GITHUB_OUTPUT
98+
echo "features=use-mimalloc-rs" >> $GITHUB_OUTPUT
9999
echo "cargo=cargo" >> $GITHUB_OUTPUT
100100
;;
101101
*linux*)
102-
echo "features=use-tcmalloc" >> $GITHUB_OUTPUT
102+
echo "features=use-mimalloc-rs" >> $GITHUB_OUTPUT
103103
echo "cargo=cargo" >> $GITHUB_OUTPUT
104104
;;
105105
*aarch64*windows*)
106-
echo "features=use-snmalloc" >> $GITHUB_OUTPUT
106+
echo "features=" >> $GITHUB_OUTPUT
107107
echo "cargo=cargo-xwin" >> $GITHUB_OUTPUT
108108
;;
109109
*windows*)
110-
echo "features=use-mimalloc-rs" >> $GITHUB_OUTPUT
110+
echo "features=" >> $GITHUB_OUTPUT
111111
echo "cargo=cargo-xwin" >> $GITHUB_OUTPUT
112112
;;
113113
*)

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -207,26 +207,26 @@ jobs:
207207
case "${{ join(matrix.targets) }}" in
208208
*arm*linux*musl*)
209209
echo "cargo=cargo" >> $GITHUB_OUTPUT
210-
echo "features=use-jemalloc" >> $GITHUB_OUTPUT
210+
echo "features=use-mimalloc-rs" >> $GITHUB_OUTPUT
211211
;;
212212
*aarch64*linux*musl*)
213213
echo "cargo=cargo" >> $GITHUB_OUTPUT
214-
echo "features=use-jemalloc" >> $GITHUB_OUTPUT
214+
echo "features=use-mimalloc-rs" >> $GITHUB_OUTPUT
215215
;;
216216
*linux*musl*)
217-
echo "features=use-jemalloc" >> $GITHUB_OUTPUT
217+
echo "features=use-mimalloc-rs" >> $GITHUB_OUTPUT
218218
echo "cargo=cargo" >> $GITHUB_OUTPUT
219219
;;
220220
*aarch64*linux*)
221-
echo "features=use-jemalloc" >> $GITHUB_OUTPUT
221+
echo "features=use-mimalloc-rs" >> $GITHUB_OUTPUT
222222
echo "cargo=cargo" >> $GITHUB_OUTPUT
223223
;;
224224
*arm*linux*)
225-
echo "features=use-jemalloc" >> $GITHUB_OUTPUT
225+
echo "features=use-mimalloc-rs" >> $GITHUB_OUTPUT
226226
echo "cargo=cargo" >> $GITHUB_OUTPUT
227227
;;
228228
*linux*)
229-
echo "features=use-jemalloc" >> $GITHUB_OUTPUT
229+
echo "features=use-mimalloc-rs" >> $GITHUB_OUTPUT
230230
echo "cargo=cargo" >> $GITHUB_OUTPUT
231231
;;
232232
*aarch64*windows*)
@@ -238,7 +238,7 @@ jobs:
238238
echo "cargo=cargo-xwin" >> $GITHUB_OUTPUT
239239
;;
240240
*)
241-
echo "features=use-jemalloc" >> $GITHUB_OUTPUT
241+
echo "features=use-mimalloc-rs" >> $GITHUB_OUTPUT
242242
echo "cargo=cargo" >> $GITHUB_OUTPUT
243243
;;
244244
esac

Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![target.'cfg_attr(feature = "unstable", feature(unstable))']
21
#cargo-features = ["profile-rustflags"]
32

43
[workspace]
@@ -111,7 +110,6 @@ hashbrown = { version = "^0.16" , features = [], default-features = false }
111110
#hashbrown = { version = "=0.14" , features = [], default-features = false }
112111
#hashbrown = { version = "^0.15" , features = [], default-features = false }
113112

114-
#[target.'cfg(any(not(any(target_arch = "arm", target_arch = "aarch64")),all(target_arch = "aarch64", not(target_os = "windows"))))'.dependencies]
115113
mimalloc = { workspace = true , optional = true }
116114
snmalloc-rs = { workspace = true , optional = true }
117115
tcmalloc = { workspace = true , optional = true }

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,15 @@ RUSTFLAGS="" cargo build --release -F use-snmalloc
140140
* ビルド時にcmakeが必要。
141141

142142
## リリース版の設定
143+
### v0.6.23
144+
| プラットフォーム | OS | メモリアロケータ |
145+
|----------------|----|----------------|
146+
| x86_64 | Linux | mimalloc-rs |
147+
| aarch64 | Linux | mimalloc-rs |
148+
| aarch64 | Windows | |
149+
| x86_64 | Windows | |
150+
| x86_64, aarch64 | Mac | mimalloc-rs |
151+
143152
### v0.6.22
144153
| プラットフォーム | OS | メモリアロケータ |
145154
|----------------|----|----------------|
@@ -158,15 +167,6 @@ RUSTFLAGS="" cargo build --release -F use-snmalloc
158167
| x86_64 | Windows | |
159168
| x86_64, aarch64 | Mac | jemalloc |
160169

161-
### v0.6.19
162-
| プラットフォーム | OS | メモリアロケータ |
163-
|----------------|----|----------------|
164-
| x86_64 | Linux | mimalloc-rs |
165-
| aarch64 | Linux | mimalloc-rs |
166-
| aarch64 | Windows | |
167-
| x86_64 | Windows | |
168-
| x86_64, aarch64 | Mac | mimalloc-rs |
169-
170170
### ライブラリインストール
171171
use-tcmalloc featuresを有効にした場合。
172172
#### tcmalloc

dist-workspace.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ members = ["cargo:."]
1616
[dist]
1717
# The preferred dist version to use in CI (Cargo.toml SemVer syntax)
1818
cargo-dist-version = "0.30.3"
19-
features = ["use-jemalloc"]
19+
features = ["use-mimalloc-rs"]
2020
# CI backends to support
2121
ci = "github"
2222
allow-dirty = ["ci"]

src/bin/dict-to-mozc.rs

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/*
12
#[cfg(all(
23
feature = "use-mimalloc",
34
any(
@@ -6,24 +7,26 @@
67
all(target_arch = "aarch64", not(target_os = "windows"))
78
)
89
))]
10+
*/
11+
#[cfg(feature = "use-mimalloc")]
912
#[global_allocator]
1013
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
1114

1215
#[cfg(feature = "use-mimalloc-rs")]
1316
#[global_allocator]
1417
static GLOBAL_MIMALLOC: mimalloc_rust::GlobalMiMalloc = mimalloc_rust::GlobalMiMalloc;
1518

16-
#[cfg(all(
17-
feature = "use-snmalloc",
18-
any(
19-
not(any(target_arch = "arm", target_arch = "aarch64")),
19+
// any(
20+
// not(any(target_arch = "arm", target_arch = "aarch64")),
2021
// not(target_os = "windows")
21-
all(target_arch = "aarch64", not(target_os = "windows"))
22-
)
23-
))]
22+
// all(target_arch = "aarch64", not(target_os = "windows"))
23+
// )
24+
//))]
25+
#[cfg(feature = "use-snmalloc")]
2426
#[global_allocator]
2527
static ALLOC: snmalloc_rs::SnMalloc = snmalloc_rs::SnMalloc;
2628

29+
/*
2730
#[cfg(all(
2831
feature = "use-tcmalloc",
2932
any(
@@ -32,6 +35,9 @@ static ALLOC: snmalloc_rs::SnMalloc = snmalloc_rs::SnMalloc;
3235
// not(target_os = "windows")
3336
)
3437
))]
38+
*/
39+
40+
#[cfg(feature = "use-tcmalloc")]
3541
#[global_allocator]
3642
static GLOBAL: tcmalloc::TCMalloc = tcmalloc::TCMalloc;
3743

0 commit comments

Comments
 (0)