commit | 6f9d0c6b5e30d5282070d333a0d091ed8e4136a9 | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Thu Nov 18 08:38:44 2021 -0500 |
committer | Jonathan Amsterdam <jba@google.com> | Thu Nov 18 19:20:43 2021 +0000 |
tree | c1ea064865c45c89f92bdbf62d2951c25ef07849 | |
parent | f158ad3d56f59add7f8219c2bca65c0d47c97143 [diff] |
internal/frontend: get list of vuln entries concurrently Read all the vuln DB entries concurrently. We arbitrarily set the number of concurrent requests to 4. It's very difficult to benchmark because after the first run, the data is cached somewhere outside the program (local machine buffers or perhaps a CDN) so subsequent calls are fast. But the first run took about 8 seconds sequentially, so this should reduce it to about 2 seconds, which is fine. Fixes golang/go#49451 Change-Id: I6e5f0abc6cd1958e9248786ceeeb7898d6efa1c3 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/364975 Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jamal Carvalho <jamal@golang.org>
Pkg.go.dev is a website for discovering and evaluating Go packages and modules.
You can check it out at https://pkg.go.dev.
If you want to report a bug or have a feature suggestion, please first check the known issues to see if your issue is already being discussed. If an issue does not already exist, feel free to file an issue.
For answers to frequently asked questions, see go.dev/about.
You can also chat with us on the #pkgsite Slack channel on the Gophers Slack.
We would love your help!
Our canonical Git repository is located at go.googlesource.com/pkgsite. There is a mirror of the repository at github.com/golang/pkgsite.
To contribute, please read our contributing guide.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.