Skip to content
This repository was archived by the owner on Feb 8, 2026. It is now read-only.
This repository was archived by the owner on Feb 8, 2026. It is now read-only.

Hot reload is 4x slower than cargo run #71

@zippoxer

Description

@zippoxer

What were you trying to do?

Hot reload a compilation-speed optimized Bevy app.

Runnable reproduction: https://github.com/zippoxer/bevy-dexterous-developer-test

System: Ubuntu 24.04 under WSL2 on Windows 11 with AMD 5900X and 64 GB RAM.

How did you know this was slow?

cargo run after changing a constant:

Finished `dev` profile [optimized + debuginfo] target(s) in 1.06s

dexterous_developer_cli reload after changing a constant:

Finished `dev` profile [optimized + debuginfo] target(s) in 4.96s

So the build is almost 5x slower without counting the extra delays before and after it (totalling just a few more seconds), although I assume these are just the costs of performing the reload 🤔

Note: the constant I'm changing is BLUE_600 to RED_600 in one of the systems.

[Optional] Why is this slow?

Is there any chance that dexterous_developer_cli uses different build parameters than cargo run does?

I've applied lots of build-time optimizations to the reproducible repo, which made it much faster.

For example: linker modifications in .cargo/config.toml and cranelift usage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions