Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions integration-tests/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions miner-apps/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions miner-apps/jd-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ clap = { version = "4.5.39", features = ["derive"] }
bitcoin_core_sv2 = { path = "../../bitcoin-core-sv2" }
hex = "0.4.3"
hotpath = "0.9"
mimalloc = "0.1.48"

[features]
hotpath = ["hotpath/hotpath"]
Expand Down
7 changes: 7 additions & 0 deletions miner-apps/jd-client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ use jd_client_sv2::JobDeclaratorClient;
use stratum_apps::config_helpers::logging::init_logging;

use crate::args::process_cli_args;
#[cfg(not(feature = "hotpath-alloc"))]
use mimalloc::MiMalloc;

// Add mimalloc
#[cfg(not(feature = "hotpath-alloc"))]
#[global_allocator]
static GLOBAL: MiMalloc = MiMalloc;

mod args;

Expand Down
1 change: 1 addition & 0 deletions miner-apps/translator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ clap = { version = "4.5.39", features = ["derive"] }
hex = "0.4.3"
hotpath = "0.9"
dashmap = "6.1.0"
mimalloc = "0.1.48"

[features]
hotpath = ["hotpath/hotpath"]
Expand Down
7 changes: 7 additions & 0 deletions miner-apps/translator/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ use stratum_apps::config_helpers::logging::init_logging;
pub use translator_sv2::{config, error, status, sv1, sv2, TranslatorSv2};

use crate::args::process_cli_args;
#[cfg(not(feature = "hotpath-alloc"))]
use mimalloc::MiMalloc;

// Add mimalloc
#[cfg(not(feature = "hotpath-alloc"))]
#[global_allocator]
static GLOBAL: MiMalloc = MiMalloc;

#[cfg(all(feature = "hotpath-alloc", not(test)))]
#[tokio::main(flavor = "current_thread")]
Expand Down
20 changes: 20 additions & 0 deletions pool-apps/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pool-apps/pool/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ clap = { version = "4.5.39", features = ["derive"] }
bitcoin_core_sv2 = { path = "../../bitcoin-core-sv2" }
hex = "0.4.3"
hotpath = "0.9"
mimalloc = "0.1.48"

[features]
hotpath = ["hotpath/hotpath"]
Expand Down
8 changes: 8 additions & 0 deletions pool-apps/pool/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ use stratum_apps::config_helpers::logging::init_logging;

use crate::args::process_cli_args;

#[cfg(not(feature = "hotpath-alloc"))]
use mimalloc::MiMalloc;

// Add mimalloc
#[cfg(not(feature = "hotpath-alloc"))]
#[global_allocator]
static GLOBAL: MiMalloc = MiMalloc;

mod args;

#[cfg(all(feature = "hotpath-alloc", not(test)))]
Expand Down
Loading