Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More Build Time Improvements #844

Merged
merged 6 commits into from
Feb 28, 2021
Merged

More Build Time Improvements #844

merged 6 commits into from
Feb 28, 2021

Conversation

Hoikas
Copy link
Member

@Hoikas Hoikas commented Feb 27, 2021

This is another batch of build improvements by enabling unity builds and adding precompiled headers. With this round, I used vcperf to profile what exactly MSVC was doing. According to profiling, the parsing of st_string.h and st_formatter.h are what we are spending the most time on, so the focus was primarily on adding precompiled headers including those files.

Further profiling indicates the following future work is available:

  • windows.h is leaking into plDrawable and pfPython via pnInputCore/plKeyDef.h
  • Most of PubUtilLib is building serially due to dependency spaghetti. The average build concurrency is 1.5 parallel targets, according to my profiling.

As a bonus, enabling unity builds on plSurface exposed that the creatable plLayerMultiply was never registered nor did it ever have a class index. This has been corrected to fix linker errors.

On my machine, the following improvements have been measured:

  • Total: 8m 14s -> 5m 28s
  • plSurface: 9.981s -> 1.878s
  • plSDL: 7.168s -> 2.422s
  • plPhysX: 10.683s -> 2.577s
  • plGImage: 11.651s -> 2.237s
  • plDrawable: 38.684s -> 4.226s

The above list is not intended to be comprehensive of the proposed changes. The full list of build timings before and after is attached. They were generated using this extension.

vcperf says that the compiler is spending a lot of time parsing these
headers (redundantly):
- string_theory/string
- string_theory/formatter
- filesystem (included from string_theory)
Hoikas and others added 4 commits February 27, 2021 18:58
Co-authored-by: Michael Hansen <zrax0111@gmail.com>
This has never had a class index, according to the records in
libHSPlasma.
@Hoikas Hoikas merged commit e918cd2 into H-uru:master Feb 28, 2021
@Hoikas Hoikas deleted the vcperf branch February 28, 2021 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants