Sitelet https://github.com/MessagePack-CSharp/MessagePack-CSharp/issues/1699
Skip to content

CompositeResolver Source Generator #1699

Description

@neuecc

In particular, in use cases with AOT, the CompositeResolver is essential.
However, there are performance penalties,
such as the need for dictionary lookups every time GetFormatter is called,
as well as issues with unstable behavior in some AOT environments (e.g., Unity's IL2CPP).

How about supporting the generation of CompositeResolver with Source Generators?

[GeneratedMessagePackResolver(typeof(FooGeneated.Instance, StandardResolver.Instance))]
public partial class MyAppResolver;

It would be preferable to reconcile naming conventions and such after #1691.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions