Skip to content

[mypyc] Add vec iterators#21135

Merged
JukkaL merged 5 commits intomasterfrom
mypyc-vec-iter
Apr 1, 2026
Merged

[mypyc] Add vec iterators#21135
JukkaL merged 5 commits intomasterfrom
mypyc-vec-iter

Conversation

@JukkaL
Copy link
Copy Markdown
Collaborator

@JukkaL JukkaL commented Apr 1, 2026

Add specialized librt.vecs.vec iterator classes. There are no primitives for iter(v) yet, though we could add them later. Generally using iter(v) should be avoided when using vecs, since the generic iterator protocol is inefficient for unboxed items.

I used coding agent assist but reviewed generated code carefully (this is mostly boilerplate).

@JukkaL JukkaL merged commit 3fbbd55 into master Apr 1, 2026
17 checks passed
@JukkaL JukkaL deleted the mypyc-vec-iter branch April 1, 2026 12:25
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