diff options
| author | Stefan Boberg <[email protected]> | 2026-04-16 14:22:09 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2026-04-16 14:22:09 +0200 |
| commit | db616a2ede14670423b7b2b28aa36c33cabb030e (patch) | |
| tree | ced9c440544f12961207a0465590b6df3d0609e9 /src/zen | |
| parent | 5.8.5-pre1 (diff) | |
| download | archived-zen-db616a2ede14670423b7b2b28aa36c33cabb030e.tar.xz archived-zen-db616a2ede14670423b7b2b28aa36c33cabb030e.zip | |
Add reduce-allocs skill and string builder infrastructure (#937)
Adds infrastructure for reducing short-lived heap allocations, to be applied across the codebase in follow-up PRs.
- **`reduce-allocs` Claude Code skill** — reviews code for unnecessary heap allocations and suggests fixes using stack-friendly patterns (`ExtendableStringBuilder`, `eastl::fixed_vector`, `TRefCounted`, etc.)
- **`TransparentStringHash`** (`zencore/hashutils.h`) — enables `std::string_view` lookups on `std::string`-keyed `unordered_map` without allocating a temporary string (C++20 heterogeneous lookup via `is_transparent`)
- **`AppendPaddedInt()`** and **`AppendFill()`** on `StringBuilderBase` (`zencore/string.h`) — zero-padded integer formatting and repeated-character fills without going through `fmt::format`
- **`StringBuilderAppender`** output iterator adapter — allows `fmt::format_to` to write directly into a `StringBuilderBase`
Diffstat (limited to 'src/zen')
| -rw-r--r-- | src/zen/cmds/wipe_cmd.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/zen/cmds/wipe_cmd.cpp b/src/zen/cmds/wipe_cmd.cpp index 10f5ad8e1..fe4e12906 100644 --- a/src/zen/cmds/wipe_cmd.cpp +++ b/src/zen/cmds/wipe_cmd.cpp @@ -4,6 +4,7 @@ #include <zencore/filesystem.h> #include <zencore/fmtutils.h> +#include <zencore/iohash.h> #include <zencore/logging.h> #include <zencore/parallelwork.h> #include <zencore/string.h> |