Skip to content

Optimize C++/WinRT fast ABI forwarding to minimize code size#424

Merged
kennykerr merged 6 commits into
masterfrom
kennykerr-fast-and-lean
May 22, 2019
Merged

Optimize C++/WinRT fast ABI forwarding to minimize code size#424
kennykerr merged 6 commits into
masterfrom
kennykerr-fast-and-lean

Conversation

@kennykerr

Copy link
Copy Markdown
Contributor

This update ensures that the fast_forward.h header is sized to content, meaning that the resulting forwarding vtable is only as big as the largest fast ABI vtable in the component. Developers can still override WINRT_FAST_ABI_SIZE if needed to handle multiple libs and assertions are in place to ensure that these values are always aligned.

Comment thread src/tool/cppwinrt/cppwinrt/component_writers.h Outdated
}
}

#undef WINRT_IMPL_NOVTABLE

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

naming convention change is fine, lets use pragma push/pop for macros

@Scottj1s Scottj1s left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@kennykerr kennykerr merged commit 6f7daac into master May 22, 2019
@kennykerr kennykerr deleted the kennykerr-fast-and-lean branch May 22, 2019 16:33
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.

2 participants