Skip to content

Reduce use of dynamic arrays#172

Merged
rauhul merged 2 commits intomainfrom
fix-126
Sep 5, 2025
Merged

Reduce use of dynamic arrays#172
rauhul merged 2 commits intomainfrom
fix-126

Conversation

@rauhul
Copy link
Collaborator

@rauhul rauhul commented Sep 5, 2025

Removes a non-constant foldable use of dynamic Arrays. This should hopefully open up using multi-range bit fields with Embedded Swift's no-allocations mode. Ideally this code would use InlineArray and Span, but doing so would require raising the deployment target substantially. I haven't fully decided if that's a good idea, so for now I'm hoping this change suffices.

Fixes #126

Removes a non-constant foldable use of dynamic Arrays. This should
hopefully open up using multi-range bit fields with Embedded Swift's
no-allocations mode. Ideally this code would use InlineArray and Span,
but doing so would require raising the deployment target substantially.
I haven't fully decided if that's a good idea, so for now I'm hoping
this change suffices.

Fixes #126
@rauhul rauhul merged commit 0dd889e into main Sep 5, 2025
22 checks passed
@rauhul rauhul deleted the fix-126 branch September 5, 2025 22:41
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.

Dynamic arrays are used in FixedWidthInteger.bitRangesCoalesced

1 participant