onnxruntime
3608cb22 - Add precompiled header support (#25739)

Commit
137 days ago
Add precompiled header support (#25739) ### Description This PR introduces precompiled header (PCH) support for ONNX Runtime targets that exhibited the longest build times when built with the MSVC toolset. By analyzing build performance, I identified a subset of targets with significant compilation overhead due to repeated header processing. Enabling PCH for these targets reduces redundant parsing, improving incremental and full build performance. Changes include: Added PCH configuration to selected CMake targets with the highest build cost in MSVC builds. Ensured PCH setup is compatible with the existing build configurations. Verified successful compilation and linkage with PCH enabled under MSVC. Impact: ~30% reduction in build time
Author
Parents
Loading