3.6.6.11 Lto-partition Option
The -flto-partition=algorithm
option
controls the algorithm used to partition object files when
running the link-time optimizer. The argument
none
disables partitioning entirely
and executes the link-time optimization step directly from the
whole program analysis (WPA) phase. This mode of operation will
produce the most optimal results, at the expense of larger
compiler memory requirements and longer build times, although
this is unlikely to be an issue with small programs.
Partitioning the object files can improve build performance. The
argument one
specifies that exactly one
partition should be used, and the argument 1to1
specifies partitioning that mirrors that dictated by the
original source files. The default argument is
balanced
, which specifies
partitioning into equally sized chunks, when possible.