Skip to content

Conversation

@stephentoub
Copy link
Member

Just an unnecessary allocation. The AsnEncodedData ctor makes a copy regardless of whether the input is a span or an array, so may as well avoid allocating another array on top of that.

Contributes to #44598

Just an unnecessary allocation.  The AsnEncodedData ctor makes a copy regardless of whether the input is a span or an array, so may as well avoid allocating another array on top of that.
@stephentoub stephentoub added the tenet-performance Performance related issue label Jan 13, 2021
@ghost ghost added the area-System.Security label Jan 13, 2021
@ghost
Copy link

ghost commented Jan 13, 2021

Tagging subscribers to this area: @bartonjs, @vcsjones, @krwq
See info in area-owners.md if you want to be subscribed.

Issue Details

Just an unnecessary allocation. The AsnEncodedData ctor makes a copy regardless of whether the input is a span or an array, so may as well avoid allocating another array on top of that.

Contributes to #44598

Author: stephentoub
Assignees: -
Labels:

area-System.Security, tenet-performance

Milestone: -

@stephentoub stephentoub added this to the 6.0.0 milestone Jan 13, 2021
@stephentoub stephentoub merged commit 01ee94b into dotnet:master Jan 13, 2021
@stephentoub stephentoub deleted the buildpublickey branch January 13, 2021 14:48
@ghost ghost locked as resolved and limited conversation to collaborators Feb 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants