Skip to content

perf: reduce gate and guard benchmark overhead#89

Merged
RyshMan merged 2 commits intomainfrom
codex/bench-evaluate-policy-fix
Mar 16, 2026
Merged

perf: reduce gate and guard benchmark overhead#89
RyshMan merged 2 commits intomainfrom
codex/bench-evaluate-policy-fix

Conversation

@RyshMan
Copy link
Contributor

@RyshMan RyshMan commented Mar 16, 2026

Problem
The release preflight was blocked by a BenchmarkEvaluatePolicyTypical regression during make bench-check, with additional tight overhead in small-pack verification.

Changes

  • avoid re-normalizing already-parsed policies on every gate evaluation
  • reduce small-slice overhead in reason and violation normalization
  • reduce small-pack VerifyPack lookup and sort overhead

Validation

  • go run ./cmd/gait doctor --json
  • make prepush-full
  • GitHub perf-nightly on this branch: success

@RyshMan RyshMan requested a review from davidahmann as a code owner March 16, 2026 21:58
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 505e3110e8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@RyshMan RyshMan merged commit d9391dc into main Mar 16, 2026
9 checks passed
@RyshMan RyshMan deleted the codex/bench-evaluate-policy-fix branch March 17, 2026 22:30
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.

1 participant