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
[SR-11012] Very slow compilation of Kitura test with 5.1 snapshots #53402
Comments
Comment by David Jones (JIRA) A flame graph from a Linux profile shows most of the time is spent in |
djones6 (JIRA User) Was the snapshot from 6/21 the first one you could reproduce this with? |
Based on the available snapshots it looks like the regression happened sometime between 05/09 and 05/21 |
Comment by David Jones (JIRA) Is there anything I can do to help narrow this down further? |
Comment by David Jones (JIRA) I tried the master development snapshots and I don't see this slow compilation problem there. This only seems to be slow on 5.1 snapshots later than 2019-05-09-a. Here are some timings from a macbook pro, each time running swift-DEVELOPMENT-SNAPSHOT (master): swift-5.1-DEVELOPMENT-SNAPSHOT: However, all these times are significantly slower than 5.0.1: real 0m5.611s |
Finally had time to track this down: #27150 |
…though admittedly that's only one change, and maybe there were two. I'm not seeing anything particularly slow in building the tests anymore, though. |
Oh, I misread this most recent message, too. Maybe we have other speedups in master besides what I just tracked down…but this was definitely the biggest thing even with an Xcode 11 compiler. I am a little confused because the problem was introduced in #23867 which was in April. |
5.1 branch (though probably not 5.1.0, not with Xcode 11's GM seed already up): #27164 |
Thank you, @belkadan! |
All right, should be in both master and the 5.1 branches. David, would you mind checking to see if speeds are back to normal, or if you're still seeing a significant difference? (I know 5.1 may still be a little slower than 5.0 in some areas, unfortunately, but I didn't observe any other order-of-magnitude problems.) |
Comment by David Jones (JIRA) I tried with the latest (2019-09-16-a) 5.1 snapshot and compilation time has returned to roughly the same as 5.0.3. Repeating the experiment from my initial report: I'd say that this is now resolved. |
Environment
Ubuntu 16.04 / 18.04, bare metal or Docker for Mac, or macOS
swift-5.1-DEVELOPMENT-SNAPSHOT-2019-06-21-a
Additional Detail from JIRA
md5: 1e345f437a090cb0f785c5700cc152ac
Issue Description:
Compiling the Kitura test suite with recent Swift 5.1 snapshots takes a very long time (over a minute on a bare-metal Ubuntu 16.04 box, 1m 30s on my Mac). I've narrowed it down to a single test that exhibits this slowness. Here's a comparison of times between 5.0.1 and the latest 5.1 snapshot:
Building these (abbreviated) tests with 5.1 took 77 seconds, compared to 1 second for Swift 5.0.1.
This seems to be 100% reproducible on every Linux environment I've tried so far (including under Docker on Mac).
Edit: This also compiles slowly on my Mac with Xcode11.
The text was updated successfully, but these errors were encountered: