Skip to content

Reduce FileStream allocations #49539

@adamsitnik

Description

@adamsitnik

P0

  • Profile FileStream memory allocations using Visual Studio Memory Profiler
  • get rid of the allocations (if there are any)
  • use IValueTaskSource suggestion from @stephentoub

P1

Most important is async IO (both buffering enabled and disabled) for overloads that use ValueTask. (@stephentoub please correct me if I am wrong)

Other aspects (sync read&write, seeking, setting length, position etc) are already non-allocating.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions