Skip to content

[Serialization] Reduce file size by splitting dep dirnames from basenames #24503

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

Merged
merged 2 commits into from
May 6, 2019

Conversation

jrose-apple
Copy link
Contributor

Dependency tracking for cached compiled modules (compiled from swiftinterfaces) can lead to a high percentage of the module being SDK-relative paths when -track-system-dependencies is on. Cut down on this by storing directory names in a separate record that gets referenced from each file dependency. (Since a lot of per-file dependencies are header files in a common directory, this is a win.)

We can do something more clever in the future, but this is a reasonable start for, say, the overlays.

rdar://problem/50449802

…ames

Dependency tracking for cached compiled modules (compiled from
swiftinterfaces) can lead to a high percentage of the module being
SDK-relative paths when -track-system-dependencies is on. Cut down on
this by storing directory names in a separate record that gets
referenced from each file dependency. (Since a lot of per-file
dependencies are header files in a common directory, this is a win.)

We can do something more clever in the future, but this is a
reasonable start for, say, the overlays.

rdar://problem/50449802
@jrose-apple jrose-apple requested a review from harlanhaskins May 4, 2019 17:49
@jrose-apple
Copy link
Contributor Author

@swift-ci Please test

@jrose-apple
Copy link
Contributor Author

@swift-ci Please smoke test

@jrose-apple jrose-apple merged commit cb94753 into swiftlang:master May 6, 2019
@jrose-apple jrose-apple deleted the artiodactyla branch May 6, 2019 17:54
jrose-apple added a commit to jrose-apple/swift that referenced this pull request May 6, 2019
[Serialization] Reduce file size by splitting dep dirnames from basenames

rdar://problem/50449802

(cherry picked from commit cb94753)
@compnerd
Copy link
Member

compnerd commented May 6, 2019

@jrose-apple
Copy link
Contributor Author

*sigh* We really need to get that into "please test".

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.

3 participants