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

Add @inlinable where SwiftUI has it #397

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Add @inlinable where SwiftUI has it #397

wants to merge 2 commits into from

Conversation

carson-katri
Copy link
Member

SwiftUI marks a lot of inits and View extension funcs @inlinable, so I went in and did the same. Not sure if it will lead to any performance differences. Do you all think this worth it/something we should do?

@carson-katri carson-katri added the refactor No user-visible functionality change label Apr 9, 2021
@carson-katri carson-katri requested a review from a team April 9, 2021 15:25
Copy link
Collaborator

@MaxDesiatov MaxDesiatov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will be hard to say what impact it has on performance until we have working benchmarks integrated with CI. But I don't see any harm in it, in fact it may make calculating diffs with the SwiftUI API easier. Either visually, or in an automated way, since attributes would match too.

@aehlke
Copy link

aehlke commented Oct 10, 2023

this would be nice to merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor No user-visible functionality change
Development

Successfully merging this pull request may close these issues.

None yet

3 participants