Skip to content

Reduce size of compiled base.h due to get_runtime_activation_factory - #876

Merged
Kenny Kerr (kennykerr) merged 2 commits into
microsoft:masterfrom
asklar:graf_size
Mar 10, 2021
Merged

Reduce size of compiled base.h due to get_runtime_activation_factory#876
Kenny Kerr (kennykerr) merged 2 commits into
microsoft:masterfrom
asklar:graf_size

Conversation

@asklar

@asklar Alexander Sklar (asklar) commented Mar 10, 2021

Copy link
Copy Markdown
Member

CC Austin Lamb (@Austin-Lamb)

A sample project that uses cppwinrt heavily, weighed 919040 bytes (897kB) - (Release/x64, all optimizations turned on)
After refactoring get_runtime_activation_factory so that the bulk of the code can fold, the binary weighed 646656 bytes (631kB).

This is a reduction in disk footprint of 30% for the entire binary.

@kennykerr
Kenny Kerr (kennykerr) merged commit 7ec62b7 into microsoft:master Mar 10, 2021
@kennykerr

Copy link
Copy Markdown
Collaborator

In future, please use a local branch as I cannot run the CI build from remote branches.

@asklar
Alexander Sklar (asklar) deleted the graf_size branch March 10, 2021 02:37
This was referenced Mar 15, 2021
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.

3 participants