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

Performance issues on large projects with Objective-C code #1103

Open
ilyakuteev opened this issue May 19, 2022 · 1 comment
Open

Performance issues on large projects with Objective-C code #1103

ilyakuteev opened this issue May 19, 2022 · 1 comment

Comments

@ilyakuteev
Copy link

Hi all. Currently I am working on a big Swift/Objc project. When using old swift driver (Via -disallow-use-new-driver option) the performance is great, but when I switch to new-swift-driver compilation is stuck on every large swift module. Time taken by swift-driver to analyze dependencies can be longer than actual time to compile the whole module. The largest module has about 700 sources and contains 182 imports (Counted by -emit-imported-modules), half of them are Objc modules.

After some research I figured out that disabling emitting dependsExternal section to swiftdeps file slightly increaces driver speed. Maybe it will help somehow.

I am looking for a patch or some architecture solution (For example isolating all Objc modules with @_implementationOnly imports) and will be happy with any help.

@ilyakuteev
Copy link
Author

ilyakuteev commented May 19, 2022

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

No branches or pull requests

1 participant