The **/Zf** option enables compiler support for faster generation of PDB files when using the [/MP (Build with Multiple Processes)](mp-build-with-multiple-processes.md) option, or when the build system (for example, [MSBuild](/visualstudio/msbuild/msbuild-reference) or [CMake](../../ide/cmake-tools-for-visual-cpp.md)) may run multiple cl.exe compiler processes at the same time. This option causes the compiler front end to delay generation of type indexes for each type record in the PDB file until the end of compilation, then requests them all in a single RPC call to mspdbsrv.exe, instead of making an RPC request for each record. This can substantially improve build throughput by reducing the RPC load on the mspdbsrv.exe process in an environment where multiple cl.exe compiler processes run simultaneously.
0 commit comments