Skip to content

replay: remove unused next_leader_tickcount - #12519

Merged
ripatel-fd merged 1 commit into
mainfrom
ripatel/remove-leader-tickcount
Oct 23, 2026
Merged

ripatel-fd merged 1 commit into
mainfrom
ripatel/remove-leader-tickcount

Conversation

@ripatel-fd

@ripatel-fd ripatel-fd commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

remove unused Tower BFT leader slot timing logic

Copilot AI balanced review requested due to automatic review settings October 23, 2026 21:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The cleanup preserves timestamp behavior and leaves no dangling references to the removed fields.

No open issues 🎉

What changed in this PR

Removes unused leader tick-count state from the replay tile and simplifies leader timestamp recording.

Changes:

  • Removes next_leader_tickcount, tick_per_ns, and their initialization and recalculation code.
  • Reuses now_nanos for the leader-slot start timestamp, preserving the existing calculation.
  • Updates test setup to match the smaller replay context.
File Description
src/​discof/​replay/​test_replay_tile.c Removes initialization of deleted fields.
src/​discof/​replay/​fd_replay_tile.c Removes unused timing calculations and simplifies timestamp assignment.
src/​discof/​replay/​fd_replay_tile_private.h Removes the unused replay context fields.

Review effort: Balanced

@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
 ┌─ ⚡ PERF · 27a4a4c vs main@b8394ed ─────────────────────────────────
 │ SUITE                               BASELINE          NEW         Δ
 │ replay tps, mainnet               13,070 tps   13,156 tps  ·  +0.66%
 │ bench tps, localnet              668,320 tps  667,947 tps  ·  -0.06%
 │ snapshot load, testnet                4.94 s       4.94 s  ·  +0.11%
+│ mem total, mainnet                150.35 GiB   150.35 GiB  ▼   0.00%
+│ mem total, testnet                 86.66 GiB    86.66 GiB  ▼   0.00%
 │ clean compile, firedancer             3.15 s       3.12 s  ·  -0.92%
 │ binary size, firedancer             57.92 MB     57.92 MB  ·   0.00%
 ├─────────────────────────────────────────────────────────────────────
@@ 0 REGRESSIONS · 0 WARNINGS · 2 IMPROVED · 5 NOISE @@
 └─────────────────────────────────────────────────────────────────────
history · 2 pushes
 ┌─ HISTORY · Δ vs main, per push, newest first ──────────────────────────────────
 │ HEAD         TPS    BENCH     SNAP    MEM·M    MEM·T  COMPILE   BINARY
+│ 27a4a4c   +0.66%   -0.06%   +0.11%    0.00%    0.00%   -0.92%    0.00%
 │ 56ff3b9   -0.70%   -0.53%   +0.21%    0.00%    0.00%   -0.01%    0.00%
 └────────────────────────────────────────────────────────────────────────────────

@ripatel-fd
ripatel-fd force-pushed the ripatel/remove-leader-tickcount branch from 56ff3b9 to 27a4a4c Compare October 23, 2026 21:27
Copilot AI balanced review requested due to automatic review settings October 23, 2026 21:27
@ripatel-fd
ripatel-fd enabled auto-merge (rebase) October 23, 2026 21:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused cleanup preserves current behavior, with no unresolved correctness issues identified.

No open issues 🎉

Review effort: Balanced

@ripatel-fd
ripatel-fd merged commit c85b7de into main Oct 23, 2026
19 checks passed
@ripatel-fd
ripatel-fd deleted the ripatel/remove-leader-tickcount branch October 23, 2026 21:29
@ripatel-fd ripatel-fd added this to the Tower BFT removal milestone Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants