Skip to content

Optimize L2Norm for ConstantArray#7495

Merged
connortsui20 merged 1 commit intodevelopfrom
ct/l2-norm-constant
Apr 16, 2026
Merged

Optimize L2Norm for ConstantArray#7495
connortsui20 merged 1 commit intodevelopfrom
ct/l2-norm-constant

Conversation

@connortsui20
Copy link
Copy Markdown
Contributor

Summary

Optimizes L2Norm for ConstantArray, and makes sure we dont hit that tracing info case.

Testing

Some basic tests.

Signed-off-by: Connor Tsui <connor.tsui20@gmail.com>
@connortsui20 connortsui20 added the changelog/performance A performance improvement label Apr 16, 2026
@connortsui20 connortsui20 enabled auto-merge (squash) April 16, 2026 19:25
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Apr 16, 2026

Merging this PR will improve performance by 23.3%

⚡ 1 improved benchmark
✅ 1162 untouched benchmarks
⏩ 1457 skipped benchmarks1

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Simulation old_alp_prim_test_between[f64, 32768] 350.3 µs 284.1 µs +23.3%

Comparing ct/l2-norm-constant (ab5cc12) with develop (7e0af3c)

Open in CodSpeed

Footnotes

  1. 1457 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@connortsui20 connortsui20 merged commit 34509f2 into develop Apr 16, 2026
63 of 65 checks passed
@connortsui20 connortsui20 deleted the ct/l2-norm-constant branch April 16, 2026 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/performance A performance improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants