[C++][CI] Enable CMAKE_UNITY_BUILD on more debug builds
- 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
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