Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Represent large sequence literals using the recently added ArrayLiteral support #1317

Merged
merged 9 commits into from
Oct 24, 2024

Conversation

parno
Copy link
Collaborator

@parno parno commented Oct 23, 2024

The recently added ArrayLiteral support offers a path towards a more efficient encoding for sequence literals (compared to a push-based description), since it directly encodes the value at each index of the literal. This PR updates the seq! macro to use a view of an equivalent array literal for sequence literals with more than one element. It also updates the interpreter to match this behavior in its specialized internal handling of sequences and arrays.

@parno parno merged commit 687e4d1 into main Oct 24, 2024
10 checks passed
@parno parno deleted the seq-to-array2 branch October 24, 2024 23:18
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