Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions BACKLOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,9 @@ Notes; finished-work narrative does not.
timings and remaining whole-program costs are recorded in `docs/MAP_COMMIT_REPLAY.md`.
Exact/shape receipt hashing now shares one schema encoding and UTF-8 tokens; matching-master alternating
probes removed the observed Castle Fight control regression while retaining the min/max improvement.
Baseline cache misses and standalone CLI manifest reads now parse from buffered UTF-8. On the 101 MB
Castle Fight replay baseline, the allocating thread used 324 MB per warmed read, down from 931 MB
across three reads per build on Windows. The decoded manifests were equal in the same JVM.

- **Audit the remaining Lua emission for waste.** The Lua backend began as "make Lua mode usable", and
recent fixes (`git log --grep "Lua"`) keep finding helper calls, allocations and dead bindings that
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ public static void writeManifest(Path buildDir, LuaHotReload.Manifest manifest)
}

private static LuaHotReload.Manifest readManifest(Path file) throws IOException {
return GSON.fromJson(Files.readString(file, StandardCharsets.UTF_8), LuaHotReload.Manifest.class);
try (var reader = Files.newBufferedReader(file, StandardCharsets.UTF_8)) {
return GSON.fromJson(reader, LuaHotReload.Manifest.class);
}
}

/** Records the manifest of a map which is being started; earlier payloads do not apply to it. */
Expand Down
Loading