Skip to content

[Optimization] Proposal: Span-based mapping for reduced allocations #2166

@AlexGreatDev

Description

@AlexGreatDev

Problem

Current object mapping in Dapper uses reflection which causes memory overhead for bulk operations.

Proposed Solution

Implement a Span<T>-based mapper as an alternative for scenarios like:

  • High-volume data processing
  • AOT compatibility

Benchmark Expectations

Expected 20-30% reduction in memory allocations (based on prototype).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions