diff options
| author | mat <git@matdoes.dev> | 2026-03-21 07:36:50 +0700 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2026-03-21 07:36:50 +0700 |
| commit | 7965bb7953bfcabd475e213db335d90e0db28497 (patch) | |
| tree | 0cb2f3f0aa52a7fdb79987bd9ee3596487dc3bc9 /azalea/src | |
| parent | 239c8aae34627c36f705398ebef6d29ec691af5c (diff) | |
| download | azalea-drasl-7965bb7953bfcabd475e213db335d90e0db28497.tar.xz | |
reword a couple parts in the perf docs
Diffstat (limited to 'azalea/src')
| -rw-r--r-- | azalea/src/_docs/performance.md | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/azalea/src/_docs/performance.md b/azalea/src/_docs/performance.md index cd665f8c..bf580f73 100644 --- a/azalea/src/_docs/performance.md +++ b/azalea/src/_docs/performance.md @@ -49,8 +49,7 @@ If you're willing to go through the trouble, PGO is also usually another 10% win ## Using a different allocator -Your operating system's allocator is probably good, but it's not always optimal. -Using [mimalloc v3](https://docs.rs/mimalloc/latest/mimalloc/) or [snmalloc](https://docs.rs/snmalloc-rs/latest/snmalloc_rs/) is almost always another easy performance win. +Using [mimalloc v3](https://docs.rs/mimalloc/latest/mimalloc/) or [snmalloc](https://docs.rs/snmalloc-rs/latest/snmalloc_rs/) as your allocator is almost always another easy performance win. Note that using these may increase your total memory usage. # Some advice @@ -108,7 +107,7 @@ azalea::Event::Init => bot.set_client_information(ClientInformation { This can be somewhat risky and isn't technically officially supported, but disabling default Azalea plugins like `PhysicsPlugin` can help with performance if you don't need them. Look at the source code for `DefaultPlugins` and `DefaultBotPlugins` to find the full list of plugins that can be disabled. -If you're insane enough, forking Azalea and commenting out code within packet handlers or other places may also be worthwhile. +If you want to go even further, forking Azalea and commenting out code within packet handlers or other places may be worthwhile (but will probably make things unstable and will make it a pain to update versions). ## Write your bot as a plugin |
