Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

internal/gps: parallelize WriteDepTree #1021

Merged
merged 1 commit into from
Aug 17, 2017

Conversation

ibrasho
Copy link
Collaborator

@ibrasho ibrasho commented Aug 16, 2017

What does this do / why do we need it?

This commit updates WriteDepTree to parallelize write projects to the
vendor directory.

This change gives a decent speed boost when writing vendor directory.

What should your reviewer look out for in this PR?

Correctness.

Which issue(s) does this PR fix?

This somehow became part of #952 even though it's not really related. 😁

@ibrasho ibrasho requested a review from sdboyer as a code owner August 16, 2017 20:55
This commit updates WriteDepTree to parallelize write projects to the
vendor directory.

Signed-off-by: Ibrahim AshShohail <[email protected]>
@ibrasho ibrasho force-pushed the parallelize-WriteDepTree branch from 1fa8a51 to 87bf819 Compare August 16, 2017 21:54
@ibrasho
Copy link
Collaborator Author

ibrasho commented Aug 16, 2017

Running dep ensure from master takes ~9s with dep from master, but only ~1.5s with dep from this branch.

I tried dep ensure on github.com/cockroachdb/cockroach and it went down from taking ~78s to ~11s.

@sdboyer
Copy link
Member

sdboyer commented Aug 17, 2017

wow, that's way more of an improvement than i'd expected. spectacular!

@sdboyer sdboyer merged commit 2e1f284 into golang:master Aug 17, 2017
@ibrasho ibrasho deleted the parallelize-WriteDepTree branch November 29, 2017 06:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants