Skip to content

Conversation

@xtqqczze
Copy link
Contributor

Follow-up to #13500.

AsSpan().Slice(start, length) -> AsSpan(start, length)

Micro-benchmarks show decrease in code size and ~1.6x speedup.

@xtqqczze
Copy link
Contributor Author

@iSazonov Should we label the arguments, i.e. AsMemory(0, index) -> AsMemory(start: 0, length: index)?

@iSazonov iSazonov added the CL-CodeCleanup Indicates that a PR should be marked as a Code Cleanup change in the Change Log label Nov 25, 2020
@iSazonov
Copy link
Collaborator

@iSazonov Should we label the arguments, i.e. AsMemory(0, index) -> AsMemory(start: 0, length: index)?

I think we can skip this as obvious.

@iSazonov iSazonov merged commit dc9ecd9 into PowerShell:master Nov 27, 2020
@iSazonov iSazonov assigned iSazonov and unassigned TravisEz13 Nov 27, 2020
@iSazonov iSazonov added this to the 7.2.0-preview.2 milestone Nov 27, 2020
@xtqqczze xtqqczze deleted the asspan-slice branch November 27, 2020 12:04
@ghost
Copy link

ghost commented Dec 15, 2020

🎉v7.2.0-preview.2 has been released which incorporates this pull request.:tada:

Handy links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-CodeCleanup Indicates that a PR should be marked as a Code Cleanup change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants