Skip to content

*: split up large packages to speed up builds #79357

@irfansharif

Description

@irfansharif

Is your feature request related to a problem? Please describe.

This is a catch-all issue to split up our largest packages (as measured by build time) to increase build parallelism. Bazel can spit out how much time is spent compiling each package, and highlights what the bottleneck packages are.

$ dev build short -- --profile=short.gz # load through chrome, browsing to chrome://tracing
$ bazel analyze-profile short.gz # textual analysis

Describe the solution you'd like

The following packages are common offendors. There are probably more.

  • pkg/sql
  • pkg/sql/parser
  • pkg/sql/colexec/colexecproj
   24.614 s    6.16%   action 'GoCompilePkg pkg/sql/colexec/colexecproj/colexecproj.a'
   ...
    9.509 s    2.38%   action 'GoCompilePkg pkg/sql/sql.a'

Related: #60547, #78237.

Jira issue: CRDB-14743

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-build-systemC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-dev-infX-nostaleMarks an issue/pr that should be ignored by the stale bot

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions