Latest Tech News

Stay updated with the latest in technology, AI, cybersecurity, and more

Filtered by: slowdown Clear Filter

Default musl allocator considered harmful to performance

TLDR: In a real world benchmark, the default musl allocator caused a 7x slowdown compared to other allocators. I recommend all Rust projects immediately add the following lines to their application’s main.rs : // Avoid musl's default allocator due to lackluster performance // https://nickb.dev/blog/default-musl-allocator-considered-harmful-to-performance #[cfg(target_env = "musl" )] #[global_allocator] static GLOBAL : mimalloc ::MiMalloc = mimalloc::MiMalloc; And Cargo.toml [ target . 'cfg(ta

How to slow down a program and why it can be useful

Most research on programming language performance asks a variation of a single question: how can we make some specific program faster? Sometimes we may even investigate how we can use less memory. This means a lot of research focuses solely on reducing the amount of resources needed to achieve some computational goal. So, why on earth might we be interested in slowing down programs then? Slowing Down Programs is Surprisingly Useful! Making programs slower can be useful to find race conditions

Slowing down programs is surprisingly useful

Most research on programming language performance asks a variation of a single question: how can we make some specific program faster? Sometimes we may even investigate how we can use less memory. This means a lot of research focuses solely on reducing the amount of resources needed to achieve some computational goal. So, why on earth might we be interested in slowing down programs then? Slowing Down Programs is Surprisingly Useful! Making programs slower can be useful to find race conditions

How to Slow Down a Program? and Why It Can Be Useful

Most research on programming language performance asks a variation of a single question: how can we make some specific program faster? Sometimes we may even investigate how we can use less memory. This means a lot of research focuses solely on reducing the amount of resources needed to achieve some computational goal. So, why on earth might we be interested in slowing down programs then? Slowing Down Programs is Surprisingly Useful! Making programs slower can be useful to find race conditions