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

Improve dynamic "case" lookup performance #137

Merged
merged 1 commit into from
Jan 3, 2024
Merged

Conversation

stephencelis
Copy link
Member

When writing algorithms against dynamic "case" lookup it's more performant to work directly with the case-pathable type rather than use case key paths, which resolve lazily and have a higher cost.

See also pointfreeco/swift-case-paths#137

@stephencelis stephencelis requested a review from mbrandonw January 2, 2024 21:42
When writing algorithms against dynamic "case" lookup it's more
performant to work directly with the case-pathable type rather than use
case key paths, which resolve lazily and have a higher cost.
@stephencelis stephencelis merged commit a7592b6 into main Jan 3, 2024
4 checks passed
@stephencelis stephencelis deleted the dml-performance branch January 3, 2024 17:59
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