zhboner / realm

A network relay tool
MIT License
1.54k stars 285 forks source link

Update Cargo.toml , mimalloc speedup #125

Closed i18nsite closed 6 months ago

i18nsite commented 6 months ago

By default this library builds mimalloc in secure mode. This means that heap allocations are encrypted, but this results in a 3% increase in overhead.

https://docs.rs/mimalloc/latest/mimalloc/

image
zephyrchien commented 6 months ago

Thanks for this PR.

BTW, recently I noticed there's another mimalloc binding for Rust. The author claims that the binding now we are using doesn't take full advantage of mimalloc's features. I have looked into the source of both crates and assume it reasonable. Maybe we'd better switch to that binding instead in the future.