Skip to content

Commit

Permalink
Merge pull request xbmc#17671 from Paxxi/buildperf
Browse files Browse the repository at this point in the history
[Windows] Improve build performance on windows
  • Loading branch information
Paxxi authored and Maven85 committed Apr 17, 2020
1 parent fb415a6 commit ac10441
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions xbmc/platform/win32/pch.h
Expand Up @@ -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 <vector>
#include <algorithm> // 32 seconds
#include <chrono> // 72 seconds
#include <fstream>
#include <iostream>
#include <map>
#include <mutex> // 19 seconds
#include <string>
#include <iostream>
#include <fstream>
#include <vector>

#include <fmt/core.h>
#include <fmt/format.h> // 53 seconds
#include <intrin.h> // 97 seconds
#include <ppltasks.h> // 87seconds, not included by us
#if !(defined(_WINSOCKAPI_) || defined(_WINSOCK_H))
#include <winsock2.h>
#endif
Expand All @@ -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

0 comments on commit ac10441

Please sign in to comment.