Skip to content

perf: Fix gradient! zero-allocation#87

Merged
bclyons12 merged 1 commit intomasterfrom
fix/gradient!
Jan 14, 2026
Merged

perf: Fix gradient! zero-allocation#87
bclyons12 merged 1 commit intomasterfrom
fix/gradient!

Conversation

@mgyoo86
Copy link
Copy Markdown
Member

@mgyoo86 mgyoo86 commented Nov 20, 2025

Summary

Use tuple literals instead of vectors in method ∈ checks to eliminate heap allocations.

…ro allocation

Convert [:symbol, ...] to (:symbol, ...) in method ∈ checks to eliminate runtime allocations. Tuples are compile-time constants that avoid heap allocations compared to vector literals.
@mgyoo86 mgyoo86 requested a review from bclyons12 November 20, 2025 05:42
@codecov
Copy link
Copy Markdown

codecov bot commented Nov 20, 2025

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 43.76%. Comparing base (01f7aff) to head (be8e805).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
src/math.jl 0.00% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master      #87   +/-   ##
=======================================
  Coverage   43.76%   43.76%           
=======================================
  Files          13       13           
  Lines       31243    31243           
=======================================
  Hits        13672    13672           
  Misses      17571    17571           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bclyons12 bclyons12 merged commit 5838de7 into master Jan 14, 2026
4 of 6 checks passed
@bclyons12 bclyons12 deleted the fix/gradient! branch January 14, 2026 07:42
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.

2 participants