apache / apache/arrow

[C++][CI] Enable CMAKE_UNITY_BUILD on more debug builds

Open
#35,873 1 comment 0 reactions 0 assignees View on GitHub
Component: C++ Component: Continuous Integration good-second-issue Type: enhancement
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 13h
Merged PRs (30d)
88

Description

### Describe the enhancement requested

CMAKE_UNITY_BUILD allows to significantly speed up non-optimized builds (often by 20-25%), as a lot of their time is spent parsing C++ code. We should go through our CI _and_ nightly builds and enable this switch where it's still disabled.

This also includes R, C/GLib and Python builds, which can spend a significant portion of time building Arrow C++.

### Component(s)

C++

Contributor guide

Open the contributing guide

Research direction

The issue names no specific files or tests. Start by inventorying the CI and nightly build definitions, checking debug, R, C/GLib, and Python builds for their current CMAKE_UNITY_BUILD settings. Done means enabling the switch wherever appropriate and confirming those builds still pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, cmake, cpp, python, r
Domain
build-system, ci-cd
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.