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

Slow linking when using lld #43

Open
sanju-naik opened this issue Jul 14, 2023 · 3 comments
Open

Slow linking when using lld #43

sanju-naik opened this issue Jul 14, 2023 · 3 comments

Comments

@sanju-naik
Copy link

I tried adding lld linker to our project using rules_apple_linker & our project link time almost doubled instead of decreasing.

I added it as per the readMe instructions

ios_application(
    name = "MyApp",
    deps = [... + ""@rules_apple_linker//:lld""],
 )

That's it.

With Default Xcode 14.3 linker, link time for one of our project was 8-10 seconds, but with lld it increased to ~20 seconds.

I tried reproducing this on sample with few Cocoapods dependencies but no luck, there link time is alsmot same for both native & lld, link time is in ms there so it didn't really show difference I believe.

Anything I am missing in the setup? If not any pointers on how to debug this?

Thanks in advance!

@keith
Copy link
Owner

keith commented Jul 14, 2023

If you want to record a time trace of the slow link I'm happy to take a look!

@sanju-naik
Copy link
Author

If you want to record a time trace of the slow link I'm happy to take a look!

Does sharing profile.qz trace file works? or you meant doing it with Xcode instruments?

@keith
Copy link
Owner

keith commented Jul 14, 2023

I meant one with instruments but that one might be useful too depending on how it was generated?

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

2 participants