RepoJournal
Go

@golang

Go and the standard library โ€” backend infrastructure at scale

Pick a date

The Wire ยท Showcase

GOIMPORTS JUST GOT 3X FASTER

By RepoJournal ยท Filed ยท About Go

golang/tools cut goimports execution time from seconds to subseconds by leveraging the module cache index that gopls already builds.

The golang/tools team shipped an optimization that fundamentally changes how goimports scans dependencies [1]. Instead of brute-forcing the entire module cache on every invocation, the new code checks for an index first, the same one gopls creates during normal editing sessions. If that index exists, goimports uses it. If not, it falls back to the original behavior. The impact is measurable: on a standard laptop, execution drops to 0.66 seconds [1]. This is the kind of invisible performance win that compounds across a thousand editor saves in a workday. The implementation is clean - no test refactoring required because the existing test suite doesn't generate indexes, so nothing breaks.

Action items

References

  1. [1] internal/imports: use module cache index if it exists golang/tools

FAQ

What changed in Go on June 28, 2026?
golang/tools cut goimports execution time from seconds to subseconds by leveraging the module cache index that gopls already builds.
What should Go teams do about it?
Update golang/tools to get the goimports speedup in your next gopls sync
Which Go repositories shipped on June 28, 2026?
golang/tools

Related across the cluster

For your repos

The showcase is a teaser.
Your wire is the product.

Same engine. Different stack. Below: what changes when the wire is yours.

Showcase wire

  • โ€ข14 famous open source orgs
  • โ€ขOne wire per day
  • โ€ขPublic, generic
  • โ€ขRead on the web, when you remember

Your wire

  • โ†’Up to 1,500 of your repos - orgs, deps, vendors
  • โ†’Morning and evening briefs
  • โ†’Action items routed to your team
  • โ†’Slack delivery, email, breaking-news CVE alerts

Want a hands-on demo first? Ask a current user for an invite link.