Skip to content

Non-marshaling COM structs and vtbl fields to be replaced with trim-friendly approach #668

Closed

Description

Instead of generating a vtbl with fields in structs and invoking these function pointers, the vtbl can be hard-coded into each 'public' method on the struct as ptr+offset with a cast to the function pointer type required. This reduces metadata size and allows trimming of the assembly to completely remove type references that are not directly used by code in the application, since all types used in functions that are not called are no longer referenced by fields in the struct.

See also #324 (comment)

Activity

  1. added a commit that references this issue on Oct 4, 2022
    fef79ae
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementpartner

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions