-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from jeffijoe/feat/mimalloc
Use mimalloc as the global allocator + remove unused hashmap of messages
- Loading branch information
Showing
9 changed files
with
110 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,25 @@ | ||
# Custom linker + flags for certain targets. | ||
|
||
[target.arm-unknown-linux-gnueabihf] | ||
linker = "arm-linux-gnueabihf-gcc" | ||
# This target is 32-bit, and mimalloc uses CAS operations | ||
# which are not implemented in hardware on 32-bit architectures, | ||
# so we need to tell the linker to include the `atomic` library. | ||
rustflags = ["-C", "link-args=-latomic"] | ||
|
||
[target.aarch64-unknown-linux-gnu] | ||
linker = "aarch64-linux-gnu-gcc" | ||
|
||
[target.aarch64-unknown-linux-musl] | ||
# The included linker for this target doesn't seem to work. | ||
linker = "rust-lld" | ||
|
||
[target.armv7-unknown-linux-gnueabihf] | ||
linker = "arm-linux-gnueabihf-gcc" | ||
|
||
# # Use the sparse registry protocol for Cargo. | ||
[target.x86_64-unknown-linux-musl] | ||
linker = "musl-gcc" | ||
|
||
# Use the sparse registry protocol for Cargo. | ||
[registries.crates-io] | ||
protocol = "sparse" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.