diff options
| -rw-r--r-- | src/CHANGELOG.md | 11 | ||||
| -rw-r--r-- | src/wire.zig | 8 |
2 files changed, 11 insertions, 8 deletions
diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 2fe5aa1c..1bece4b2 100644 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -41,13 +41,14 @@ A column resizes by its box, left of its tag; a pane by its own box, or in a window by the rule above it. -- An edit to the core recompiles it about 1 s sooner again (`core-test`, - 8 % fewer of the compiler's instructions, 4.4 MB less code in a Debug +- An edit to the core recompiles it about 1.5 s sooner again (`core-test`, + 13 % fewer of the compiler's instructions, 4.4 MB less code in a Debug test): a load's note on a field (another build's dump) is written from the type's and the field's names at run time, where every type and - field had its own copy of the code that writes one, and one byte - dump's reader serves a session, a pane and the rest, where each had its - own. + field had its own copy of the code that writes one; one byte dump's + reader serves a session, a pane and the rest, where each had its own; + and what tells a replica's build from another's (`wire.semantics`) + joins its two long parts on, where it formatted them, at every compile. - An edit to the core recompiles it about 3 s sooner (`core-test`, 13 s to 10 s): the build keeps each grammar's highlight patterns that pardes diff --git a/src/wire.zig b/src/wire.zig index 3dd08b29..69cf5be3 100644 --- a/src/wire.zig +++ b/src/wire.zig @@ -61,16 +61,18 @@ const family = switch (config.platform) { /// their options and dependencies; -Dstamp-commit stamps one. pub const semantics: u64 = blk: { @setEvalBranchQuota(1_000_000); + // The two long ones (the dependencies, 2.5 KB, and the tape's shape, + // 11 KB) joined on, not formatted: formatting them at comptime was 5 % + // of a compile of the core. break :blk std.hash.Wyhash.hash(0, std.fmt.comptimePrint( - "wire {d}\npardes {s} {s}\n{s} grammars {} {} {} {} workspace_tag {} sources {}\nusize {d} {t}\n{s}\n{s}", + "wire {d}\npardes {s} {s}\n{s} grammars {} {} {} {} workspace_tag {} sources {}\nusize {d} {t}\n", .{ version, config.version, config.commit orelse "unstamped", family, config.syntax_highlighting, config.syntax_zig_grammar, config.syntax_minimal_grammars, config.syntax_full_grammars, config.workspace_tag, config.embed_sources, @sizeOf(usize), builtin.cpu.arch.endian(), - config.deps, pardes.tape.shape, }, - )); + ) ++ config.deps ++ "\n" ++ pardes.tape.shape); }; /// EndOfStream: the message ends early; WriteFailed: no room for it. |
