The GitHub Actions job "Build Burr" on burr.git/main has succeeded.
Run started by GitHub user skrawcz (triggered by skrawcz).

Head commit for run:
3df3b51eb2f10f5f0bbe8f1a29a020f25f297533 / Adam Munawar Rahman 
<[email protected]>
fix: tracking UI graph view freezes on state machines with dense transitions 
(#834)

* fix: stop smart-edge pathfinding from rerunning on every graph interaction

The graph view reran A* pathfinding for every edge on every render.
Highlight state arrives via a context whose value object was rebuilt
inline, so every click and hover re-rendered all nodes and edges, each
edge re-running pathfinding over a grid sized to the whole layout.

- memoize the smart-edge path per edge on geometry and node set
- skip A* above 100 nodes and fall back to bezier so large graphs render
- memoize the highlight context value
- key the relayout effect on graph structure instead of object identity,
  so identity churn without a structural change (focus switches,
  responses that are not reference-stable) no longer forces a full
  relayout and fitView
- create a fresh dagre graph per layout instead of reusing a module-level
  instance that accumulates stale nodes across applications
- remove leftover debug edge label

Measured with production builds: clicks on a 150-action application went
from 11s+ on the 0.40.2 release (the same benchmark hung outright on a
build of this source) to ~31ms; a 300-action application previously never
finished its initial render and now renders with ~75ms interactions.

Fixes #833

* fix: derive relayout key from the rendered graph; store only labels in node 
data

The relayout key now comes from the same conversion the renderer uses
(node ids and types plus edge source/target/condition), so it matches
rendering by construction: hidden __-prefixed inputs and non-rendered
model fields can neither trigger nor miss a relayout, and showInputs is
covered by the key because input nodes have their own ids. Node data
carries only the rendered label instead of the whole ActionModel, so
replacing the model object cannot leave stale data in nodes.

Report URL: https://github.com/apache/burr/actions/runs/29132142844

With regards,
GitHub Actions via GitBox

Reply via email to