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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance improvement: cache build phase for build files #337

Merged
merged 1 commit into from Oct 12, 2018

Conversation

yonaskolb
Copy link
Collaborator

This improves performance when writing build files by caching the build phase they belong to.

On one test it halved the writing time. The more build files in a project the bigger the gain 馃憤

@ghost
Copy link

ghost commented Oct 11, 2018

Danger run resulted in 2 messages and 2 warnings; to find out more, see the checks page.

Generated by 馃毇 dangerJS

@yonaskolb
Copy link
Collaborator Author

The changelog for this is in #338

let projectObjects = try objects()
switch type {
case .copyFiles?:
return projectObjects.copyFilesBuildPhases
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This also removes the double loop of copy build phase files, even if there wasn't a cache

@yonaskolb
Copy link
Collaborator Author

@pepibumur is this good to merge?

Copy link
Contributor

@pepicrft pepicrft left a comment

Choose a reason for hiding this comment

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

Yes! Thanks for tackling this. The code looks good to me.

@pepicrft pepicrft merged commit 0b682b6 into master Oct 12, 2018
@pepicrft pepicrft deleted the build_phase_performance branch October 12, 2018 06:38
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.

None yet

2 participants