Skip to content

Commit

Permalink
Changelog - perf
Browse files Browse the repository at this point in the history
Old: 16668 (19.4%)    1 (0.0%)  rec_wars::cvars::Cvars::set_str
New: 2803 (3.9%)     1 (0.0%)  rec_wars::cvars::Cvars::set_str
  • Loading branch information
martin-t committed Jun 5, 2023
1 parent 9473725 commit 47813ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This is a shared changelog for all projects in this repo:
- Update to syn 2
- Internal improvements: unified macro logic so `cvars!` no longer depends on `#[derive(SetGet)]`.
- **Breaking change:** `cvars!` no longer adds `#[derive(Debug, Clone)]` to the generated struct. This might improve compile times with a large (~10k) number of cvars.
- Reduce the amount of code generated per-cvar:
- Reduce the amount of code generated per-cvar (6x fewer lines of LLVM IR):
- Recompile speedup after editing cvars: 10.5s -> 3.5s for 1k cvars (3x faster)
- Recompile speedup after editing other code: 700ms -> 450ms for 1k cvars (1.5x faster)
- The `cvars!` proc macro is no longer experimental and is the recommended way to use cvars because it is more convenient than `#[derive(SetGet)]`.
Expand Down

0 comments on commit 47813ed

Please sign in to comment.