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
6 changes: 4 additions & 2 deletions BACKLOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,10 @@ Notes; finished-work narrative does not.
frozen target graphs and bindings admit ordinary callers of Math.min/max, R2I, nullable-handle wrappers and
hashtable stubs under the existing shape/dependency receipts and cold equality gates. Next: class/generic
products, versioned dependency queries instead of global receipts, compile-time closure-only materialisation and
incremental payload indexing. Payload comparison now groups compile-time statements once per manifest and reuses
the index for compatibility checks, warnings and replay. Port producer contracts rather than parsing generated names or synthesising empty
incremental payload indexing. Payload comparison now reuses compile-time statement, binding and initializer
indexes across checks. On the unchanged Castle Fight fixture, the merged allocation changes reduced warmed
allocation from 371 MB to 87 MB per diff. See [the offline measurement](docs/RUNMAP_PERFORMANCE.md#payload-diff-allocation).
Port producer contracts rather than parsing generated names or synthesising empty
function headers. The real Zombie Defense armor-cost edit now lowers/emits one runtime function; controlled
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
Expand Down
16 changes: 16 additions & 0 deletions docs/RUNMAP_PERFORMANCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,3 +331,19 @@ map title. The baseline checked 758 units in 4.95 s. Body-only reuse checked one
Each measurement came from one fresh JVM run. These are compiler stage observations, with no game launch or
save-to-game measurement. The next first-reload optimization needs to handle Jass declaration
additions without overlooking cross-file name resolution or diagnostics.

## Payload diff allocation

On 6 Nov 2026, a Windows Java 27 probe decoded the same 101 MB Castle Fight baseline twice
and called `LuaHotReload.payload` with those independently decoded manifests and empty delivery
history. The thread allocation counter covered only payload generation. The last three of eight
iterations measured 371.1 MB per diff before the changes (`c14f37aa1` payload code) and 87.4 MB
on merged master (`a6b6d02cb`). Both produced the same 93-byte Lua payload and no warnings.
This control measures an unchanged diff. It excludes manifest reads, compilation, delivery and
game application.

JFR identified repeated binding parsing as the largest allocation in the original diff. The
merged changes share the parsed indexes and skip binding-change checks when the ordered bindings
match. They also share initializer marker hashes and limit retained-function, partial-removal and
order-group bookkeeping to relevant entries. [Binding index PR](https://github.com/wurstscript/WurstScript/pull/1602)
and [identical-binding fast path PR](https://github.com/wurstscript/WurstScript/pull/1607).
Loading