Skip to content

Slow compilation speed #2300

Answered by ghost
bizehao asked this question in Q&A
Discussion options

You must be logged in to vote

Console :

Win32 :

one (lol.cpp) file -> compiled to (.whatever) object code file.

WinRT :

First run : two (pch.h and lol.cpp) file -> compiled to (.whatever) object code file.
Second run : one/only changes (lol.cpp) file -> compiled to (.whatever) object code file.

NOTE : second run is as fast as win32 projects compile time.
👉The Fix : need more mature C++ modules support in compilers. see microsoft/cppwinrt#847 (comment)


XAML (WinUI 3) :

each .XAML (WinUI 3) files -> parsed and interpreted to ("iso standard cpp") *.cpp files -> compiled to (.xbf) object code files.

👉yes "compiling" WinUI 3 is a two step task and .xaml to "iso standard cpp" .cpp alone takes huge amount of time and then…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by bizehao
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants