From ac104414c6cfdbbb7299b6394005978ad9ad347d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A4r=20Bj=C3=B6rklund?= Date: Thu, 16 Apr 2020 20:12:28 +0200 Subject: [PATCH] Merge pull request #17671 from Paxxi/buildperf [Windows] Improve build performance on windows --- xbmc/platform/win32/pch.h | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/xbmc/platform/win32/pch.h b/xbmc/platform/win32/pch.h index 6ba6b3f233cf0..dce2b191f403a 100644 --- a/xbmc/platform/win32/pch.h +++ b/xbmc/platform/win32/pch.h @@ -8,12 +8,22 @@ #pragma once +// The times in comments are how much time was spent parsing +// the header file according to C++ Build Insights in VS2019 #define _CRT_RAND_S -#include +#include // 32 seconds +#include // 72 seconds +#include +#include #include +#include // 19 seconds #include -#include -#include +#include + +#include +#include // 53 seconds +#include // 97 seconds +#include // 87seconds, not included by us #if !(defined(_WINSOCKAPI_) || defined(_WINSOCK_H)) #include #endif @@ -40,3 +50,6 @@ WINRT_WARNING_PUSH // anything below here should be headers that very rarely (hopefully never) // change yet are included almost everywhere. /* empty */ + +#include "FileItem.h" //63 seconds +#include "addons/addoninfo/AddonInfo.h" // 62 seconds