Skip to content

Conversation

@mbrandonw
Copy link
Member

There is a known, and longstanding, issues in Swift where large switch statements can blow the stack. Indirect enums can help with this, but there is also a trick described here of wrapping each case in an immediately invoked closure.

@mbrandonw mbrandonw requested a review from stephencelis April 2, 2025 01:50
@mbrandonw
Copy link
Member Author

It isn't immediately obvious that this is going to help right now, so I'm going to close it. We can revisit later if needed.

@mbrandonw mbrandonw closed this Apr 3, 2025
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