Sitelet https://github.com/starkware-libs/cairo/pull/9851
Skip to content

semantic/cache: dedupe FixedSizeArray const size id - #9851

Merged
orizi merged 2 commits into
starkware-libs:mainfrom
Keemosty12:semantic-cache-fixed-size-array-size-id
Apr 16, 2026
Merged

orizi merged 2 commits into
starkware-libs:mainfrom
Keemosty12:semantic-cache-fixed-size-array-size-id

Conversation

@Keemosty12

Copy link
Copy Markdown
Contributor

This changes TypeCached::FixedSizeArray to store ConstValueIdCached for size, reusing the existing const-value lookup and avoiding duplicated embedded const payloads.

@reviewable-StarkWare

Copy link
Copy Markdown

This change is Reviewable

@orizi orizi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@orizi made 1 comment.
Reviewable status: 0 of 1 files reviewed, all discussions resolved.


a discussion (no related file):
@TomerStarkware for 2nd eye.

@orizi orizi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@orizi made 1 comment.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on Keemosty12).


crates/cairo-lang-semantic/src/cache/mod.rs line 1242 at r1 (raw file):

            TypeCached::ImplType(impl_type) => TypeLongId::ImplType(impl_type.embed(ctx)),
            TypeCached::FixedSizeArray(type_id, size) => TypeLongId::FixedSizeArray {
                type_id: type_id.embed(ctx),

run ./scripts/rust_fmt.sh.

@TomerStarkware TomerStarkware left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

:lgtm:

@TomerStarkware made 1 comment.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on Keemosty12 and orizi).

@orizi
orizi enabled auto-merge April 16, 2026 12:23

@orizi orizi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

:lgtm:

@orizi reviewed 1 file and all commit messages, made 1 comment, and resolved 1 discussion.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on Keemosty12).

@orizi
orizi added this pull request to the merge queue Apr 16, 2026
Merged via the queue into starkware-libs:main with commit aa85e35 Apr 16, 2026
53 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.

4 participants