Skip to content

.Net: [MEVD] Eliminate boxing of value types when serializing/deserializing #11183

@roji

Description

@roji

We currently pass all value types via object, which boxes and creates lots of needless GC pressure. We should be able to get to a place where these operations no longer box, i.e. invoke typed compiled delegates (in JIT mode) or source-generated ones (in AOT mode) which return the right type instead of object. The connectors would need to switch on the required property CLR type and then invoke the right generic getter/setter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETIssue or Pull requests regarding .NET codemsft.ext.vectordataRelated to Microsoft.Extensions.VectorDatastaleIssue is stale because it has been open for a while and has no activity

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions