Skip to content

nit: API cleanup - #9517

Merged
taylorsilva merged 3 commits into
masterfrom
api-cleanup
Apr 10, 2026
Merged

taylorsilva merged 3 commits into
masterfrom
api-cleanup

Conversation

@taylorsilva

Copy link
Copy Markdown
Member

Changes proposed by this PR

Simple cleanup of the atc/api/ package. Prompted Claude to analyze the code and then I reviewed and implemented the legitimate issues/suggestions it found.

  • Pre-allocate slices where possible to reduce the amount of slice growth and copying
  • Switch json.Marshal+Write to json.NewEncoder(w).Encode() to remove intermediate allocations
  • Removed the unused sync.Mutex from the verifier

The Lock()/Unlock() were never called

Signed-off-by: Taylor Silva <[email protected]>
to reduce the amount of slice growth and copying

Signed-off-by: Taylor Silva <[email protected]>
removes intermediate allocations

Signed-off-by: Taylor Silva <[email protected]>
@taylorsilva
taylorsilva requested a review from a team April 9, 2026 17:48
@taylorsilva
taylorsilva merged commit 8cb35ad into master Apr 10, 2026
12 checks passed
@taylorsilva
taylorsilva deleted the api-cleanup branch April 10, 2026 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant