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

perf: Mark all protocols as AnyObject, since they're always classes #176

Merged
merged 2 commits into from
Oct 5, 2024

Conversation

mrousavy
Copy link
Owner

@mrousavy mrousavy commented Oct 5, 2024

Per "Swift Optimization Tips: Mark protocols that are only satisfied by classes as class-protocols", marking protocols as AnyObject could increase performance since we know that HybridObjects are never structs anyways.

@mrousavy mrousavy merged commit 0d06c78 into main Oct 5, 2024
5 checks passed
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