Skip to content

chore: optimize array_get through unconditional array_set#11785

Merged
asterite merged 1 commit intomasterfrom
ab/tiny-array-get-optimization
Mar 5, 2026
Merged

chore: optimize array_get through unconditional array_set#11785
asterite merged 1 commit intomasterfrom
ab/tiny-array-get-optimization

Conversation

@asterite
Copy link
Copy Markdown
Collaborator

@asterite asterite commented Mar 5, 2026

Description

Problem

No issue, I'm just trying to extract unrelated changes from #11659

Summary

While working on #11659 I realized an optimization I added to the array_set pass can also be done to the array_get pass, so here I extracted it to a separate PR. It likely won't have any green/red changes here, but it's an easy optimization.

Additional Context

User Documentation

Check one:

  • No user documentation needed.
  • Changes in docs/ included in this PR.
  • [For Experimental Features] Changes in docs/ to be submitted in a separate PR.

PR Checklist

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt on default settings.

Copy link
Copy Markdown
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Brillig Execution Time'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.20.

Benchmark suite Current: bdd4721 Previous: 85aae28 Ratio
rollup-block-root 0.003 s 0.002 s 1.50

This comment was automatically generated by workflow using github-action-benchmark.

CC: @TomAFrench

Copy link
Copy Markdown
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Test Suite Duration'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.20.

Benchmark suite Current: bdd4721 Previous: 85aae28 Ratio
test_report_zkpassport_noir-ecdsa_ 3 s 2 s 1.50

This comment was automatically generated by workflow using github-action-benchmark.

CC: @TomAFrench

@asterite asterite requested a review from a team March 5, 2026 18:22
Copy link
Copy Markdown
Contributor

@aakoshh aakoshh left a comment

Choose a reason for hiding this comment

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

Looks straight forward enough 👍

@asterite asterite added this pull request to the merge queue Mar 5, 2026
Merged via the queue into master with commit 43f2280 Mar 5, 2026
137 checks passed
@asterite asterite deleted the ab/tiny-array-get-optimization branch March 5, 2026 20:29
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