Skip to content

Avoid aggregate copies - #1483

Merged
sbillig merged 4 commits into
argotorg:masterfrom
sbillig:avoid-agg-copies
May 30, 2026
Merged

Avoid aggregate copies#1483
sbillig merged 4 commits into
argotorg:masterfrom
sbillig:avoid-agg-copies

Conversation

@sbillig

@sbillig sbillig commented May 29, 2026

Copy link
Copy Markdown
Collaborator

Cuts some more deposit contract bytes and gas.

Fe:
- Avoid object-backed runtime storage for read-only owned aggregates, tuple destructuring, and read-only aggregate helper calls.
- Construct runtime aggregate values directly instead of allocating temporary objects and loading them back into aggregate values.

Sonatina:
- Account for scalarizable aggregate inserts, extracts, and returns when deciding whether to inline small helpers.
- Copy aggregate insert-value webs directly to memory during aggregate legalization instead of materializing source aggregate slots.
- Skip zero-sized aggregate leaf memory operations during aggregate legalization.

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

Copy link
Copy Markdown

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: 7079a4ec58

ℹ️ 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".

Comment thread crates/hir/src/core/lower/msg.rs Outdated
@sbillig
sbillig force-pushed the avoid-agg-copies branch from 7079a4e to 2303277 Compare May 29, 2026 13:45
@sbillig
sbillig force-pushed the avoid-agg-copies branch from 2303277 to 67fccd8 Compare May 30, 2026 08:28
@sbillig
sbillig force-pushed the avoid-agg-copies branch from b77c970 to db84011 Compare May 30, 2026 09:07
@sbillig
sbillig requested a review from cburgdorf May 30, 2026 09:30
@sbillig sbillig mentioned this pull request May 30, 2026
@sbillig
sbillig merged commit cbcad8a into argotorg:master May 30, 2026
7 checks passed
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