Skip to content

Commit e0cea2e

Browse files
authored
solana-test-validator: Use jemallocator (#10085)
Agave is absurdly slow when using glibc allocator. Even though test validator should not be treated as a direct indicator of performance, it should still be fast enough for people to play with it.
1 parent 9fcea95 commit e0cea2e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

validator/src/bin/solana-test-validator.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ use {
4343
},
4444
};
4545

46+
#[cfg(not(any(target_env = "msvc", target_os = "freebsd")))]
47+
#[global_allocator]
48+
static GLOBAL: jemallocator::Jemalloc = jemallocator::Jemalloc;
49+
4650
#[derive(PartialEq, Eq)]
4751
enum Output {
4852
None,

0 commit comments

Comments
 (0)