Skip to content

Utilize copy-on-write when constructing collections from arrays#1

Merged
delacry merged 1 commit into0.1.xfrom
cow-from-array
Mar 14, 2026
Merged

Utilize copy-on-write when constructing collections from arrays#1
delacry merged 1 commit into0.1.xfrom
cow-from-array

Conversation

@delacry
Copy link
Copy Markdown
Member

@delacry delacry commented Mar 14, 2026

  • listOf(), stringMapOf(), intMapOf() and mutable variants now assign arrays directly instead of iterating, so PHP's COW kicks in
  • Key validation still works, IntMap rejects non-int keys even with the fast path

@delacry delacry merged commit 119892e into 0.1.x Mar 14, 2026
4 checks passed
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 14, 2026

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment

Thanks for integrating Codecov - We've got you covered ☂️

@delacry delacry deleted the cow-from-array branch March 14, 2026 21:08
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