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

Compilation time improvements #60

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ivanbruel
Copy link

@ivanbruel ivanbruel commented Aug 30, 2016

GPUImage2 has been taking a lot of time to compile so I added the -Xfrontend -debug-time-function-bodies to OTHER_SWIFT_FLAGS and discovered the problem.

The Swift compiler seems to be having issues with Lazy vars and Type inference, as such I fixed both and managed to save a lot of time as can be seen in the screenshots below:

Before fix:
screen shot 2016-08-30 at 16 31 05

After fix:
screen shot 2016-08-30 at 16 31 23

I'm sure a lot more stuff can be improved but this case was the most time demanding one.

For reference: Regarding Swift build time optimizations

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