cockroachdb / cockroachdb/cockroach
bazel: speed up `dev gen go` (`//pkg/gen:code`)
Open
A-build-system
C-enhancement
T-dev-inf
- Dominant language
- Go
- Stars
- 32.5k
- Forks
- 4.1k
- PR merge metrics
- PR metrics pending
Description
This is far and away the slowest part of code generation (`dev gen`). We should eliminate dependencies wherever possible to make this faster.
See also #123159
Epic: [CRDB-17171](https://cockroachlabs.atlassian.net/browse/CRDB-17171)
Jira issue: CRDB-38220
Epic CRDB-17171
Contributor guide
Research direction
Start at the `//pkg/gen:code` Bazel target invoked by `dev gen go`, and review the related issue #123159 for context. Inspect its dependency graph and measure the current code-generation time; done means removing unnecessary dependencies and making this generation step faster.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- build-system
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100