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. 😁

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

Signed-off-by: Ibrahim AshShohail <ibra.sho@gmail.com>
@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