Skip to content

Investigate CA1844 warnings about performance in stream #39555

@ShreyasJejurkar

Description

@ShreyasJejurkar

While working on the codebase, Visual Studio threw some warnings about stream performance, which says use memory-based stream instead of an array-based stream.
Below are the warnings

image

Here is the corresponding rule -> https://docs.microsoft.com/en-gb/dotnet/fundamentals/code-analysis/quality-rules/ca1844

I am by no means a performance expert and do not have a good machine to compare and test perf score, so I am filing this issue so that one can from the team figure out what to do here!
There is a total of 14 warnings.

image

(Please open the above image in a new tab by right-clicking for clearness)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-infrastructureIncludes: MSBuild projects/targets, build scripts, CI, Installers and shared framework

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions