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

Significantly speed up loading the list of S3 buckets #2186

Merged
merged 2 commits into from Nov 6, 2020

Conversation

hunterwerlla
Copy link
Contributor

@hunterwerlla hunterwerlla commented Nov 6, 2020

  • By using coroutines to parallelize headbucket
  • It is safe to have 100 calls of headbucket in parallel (we do it in VSCode already)

Related issues

#2174

License

I confirm that my contribution is made under the terms of the Apache 2.0 license.

@hunterwerlla hunterwerlla requested a review from a team as a code owner November 6, 2020 18:32
}
}
}

val LIST_BUCKETS: Resource<List<Bucket>> = LIST_REGIONALIZED_BUCKETS.map { it.bucket }

fun bucketRegion(bucketName: String): Resource<AwsRegion?> = Resource.View(LIST_REGIONALIZED_BUCKETS) {
Copy link
Contributor

@kiiadi kiiadi Nov 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was this not used?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep it was unused (we use regionForBucket)

@sonarcloud
Copy link

sonarcloud bot commented Nov 6, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@hunterwerlla hunterwerlla merged commit 19fa453 into master Nov 6, 2020
@hunterwerlla hunterwerlla deleted the werlla/speedUpS3 branch November 6, 2020 19:22
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.

None yet

2 participants