Skip to content

Optimize deserialization #6788

Description

@coryan

As @fornwall notes:

The generated deserializers track duplicate fields with a HashSet, which hashes each insertion and allocates storage as fields are recorded.

This could be avoided with a bitset: each field could get a known index between 0 and N, and N is known at compile time.

I am opening this issue so we can discuss ideas, tradeoffs, and quantify the wins.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p3Desirable enhancement or fix. May not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions