Skip to content

Marshalling time of custom types is dominated by hash computation #224

@Imberflur

Description

@Imberflur

flamegraph.svg.zip
image

This seems like something that could be vastly improved by caching the type_guid computation for StructRef but there may be a reason that this is not being done.

impl ReturnTypeReflection for StructRef {
    type Marshalled = RawStruct;

    fn type_name() -> &'static str {
        "struct"
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    exp: intermediateAchievable by experienced contributors, or with some guidancepri: intermediateAn issue resulting in non-critical functionality loss and no significant effect on usabilitytype: perfChanges that improve performance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions