build releases with mimalloc

This commit is contained in:
Scott Lamb
2025-04-03 09:16:04 -07:00
parent 0ccc6d0769
commit 39b6f6c49c
10 changed files with 79 additions and 18 deletions

View File

@@ -27,7 +27,9 @@ itertools = { workspace = true }
jiff = { workspace = true }
libc = "0.2"
nix = { workspace = true, features = ["dir", "feature", "fs", "mman"] }
num-rational = { version = "0.4.0", default-features = false, features = ["std"] }
num-rational = { version = "0.4.0", default-features = false, features = [
"std",
] }
pretty-hex = { workspace = true }
protobuf = "3.0"
ring = { workspace = true }

View File

@@ -656,6 +656,7 @@ mod bench {
/// Benchmarks the decoder, which is performance-critical for .mp4 serving.
#[bench]
fn bench_decoder(b: &mut test::Bencher) {
crate::testutil::init();
let data = include_bytes!("testdata/video_sample_index.bin");
b.bytes = data.len() as u64;
b.iter(|| {

View File

@@ -37,6 +37,7 @@ pub const TEST_VIDEO_SAMPLE_ENTRY_DATA: &[u8] =
/// * use a fast but insecure password hashing format.
pub fn init() {
INIT.call_once(|| {
base::ensure_malloc_used();
base::tracing_setup::install_for_tests();
base::time::testutil::init_zone();
crate::auth::set_test_config();