Skip to content
This repository was archived by the owner on Jan 28, 2026. It is now read-only.

Add @inlinable where SwiftUI has it#397

Open
carson-katri wants to merge 2 commits intomainfrom
inlinable
Open

Add @inlinable where SwiftUI has it#397
carson-katri wants to merge 2 commits intomainfrom
inlinable

Conversation

@carson-katri
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown

aehlke commented Oct 10, 2023

this would be nice to merge

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

refactor No user-visible functionality change

Development

Successfully merging this pull request may close these issues.

3 participants