Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Specialize by length in single-value SearchValues<string>#96429

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@MihaZupan
Copy link
Member

Fixes#96142 - pretty much a revert of2e70415 from#88394.

MethodToolchainWordMeanErrorRatio
Countmainthe146.1 us2.83 us1.00
Countprthe119.7 us0.96 us0.82
CountIgnoreCasemainthe169.5 us2.99 us1.00
CountIgnoreCaseprthe150.4 us0.51 us0.89
Countmainthat71.10 us0.229 us1.00
Countprthat62.66 us0.237 us0.88
CountIgnoreCasemainthat79.90 us0.197 us1.00
CountIgnoreCaseprthat74.46 us1.221 us0.93
CountmainHolmes49.58 us0.151 us1.00
CountprHolmes48.54 us0.663 us0.98
CountIgnoreCasemainHolmes59.90 us0.126 us1.00
CountIgnoreCaseprHolmes59.95 us0.623 us1.00
Countmainsomething44.72 us0.281 us1.00
Countprsomething44.10 us0.331 us0.99
CountIgnoreCasemainsomething54.12 us0.221 us1.00
CountIgnoreCaseprsomething54.59 us0.106 us1.01

Looking at the benchmark from#96142

MethodToolchainMeanErrorRatio
RegularCaseInsensitivemain26.12 ns0.195 ns1.00
RegularCaseInsensitivepr25.43 ns0.366 ns0.97
OptimizedCaseInsensitivemain56.46 ns0.770 ns1.00
OptimizedCaseInsensitivepr20.72 ns0.337 ns0.37
RegularCaseSensitivemain13.95 ns0.114 ns1.00
RegularCaseSensitivepr14.10 ns0.179 ns1.01
OptimizedCaseSensitivemain56.65 ns0.850 ns1.00
OptimizedCaseSensitivepr10.38 ns0.174 ns0.18

@MihaZupanMihaZupan added this to the9.0.0 milestoneJan 3, 2024
@MihaZupanMihaZupan self-assigned thisJan 3, 2024
@ghost
Copy link

Tagging subscribers to this area: @dotnet/area-system-buffers
See info inarea-owners.md if you want to be subscribed.

Issue Details

Fixes#96142 - pretty much a revert of2e70415 from#88394.

MethodToolchainWordMeanErrorRatio
Countmainthe146.1 us2.83 us1.00
Countprthe119.7 us0.96 us0.82
CountIgnoreCasemainthe169.5 us2.99 us1.00
CountIgnoreCaseprthe150.4 us0.51 us0.89
Countmainthat71.10 us0.229 us1.00
Countprthat62.66 us0.237 us0.88
CountIgnoreCasemainthat79.90 us0.197 us1.00
CountIgnoreCaseprthat74.46 us1.221 us0.93
CountmainHolmes49.58 us0.151 us1.00
CountprHolmes48.54 us0.663 us0.98
CountIgnoreCasemainHolmes59.90 us0.126 us1.00
CountIgnoreCaseprHolmes59.95 us0.623 us1.00
Countmainsomething44.72 us0.281 us1.00
Countprsomething44.10 us0.331 us0.99
CountIgnoreCasemainsomething54.12 us0.221 us1.00
CountIgnoreCaseprsomething54.59 us0.106 us1.01

Looking at the benchmark from#96142

MethodToolchainMeanErrorRatio
RegularCaseInsensitivemain26.12 ns0.195 ns1.00
RegularCaseInsensitivepr25.43 ns0.366 ns0.97
OptimizedCaseInsensitivemain56.46 ns0.770 ns1.00
OptimizedCaseInsensitivepr20.72 ns0.337 ns0.37
RegularCaseSensitivemain13.95 ns0.114 ns1.00
RegularCaseSensitivepr14.10 ns0.179 ns1.01
OptimizedCaseSensitivemain56.65 ns0.850 ns1.00
OptimizedCaseSensitivepr10.38 ns0.174 ns0.18
Author:MihaZupan
Assignees:MihaZupan
Labels:

area-System.Buffers

Milestone:9.0.0

@MihaZupanMihaZupan changed the titleSearchvalues string valuelengthSpecialize by length in single-value SearchValues<string>Jan 3, 2024
Copy link
Member

@stephentoubstephentoub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thanks!

@MihaZupanMihaZupan merged commit7957edc intodotnet:mainJan 3, 2024
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsFeb 3, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@stephentoubstephentoubstephentoub approved these changes

Assignees

@MihaZupanMihaZupan

Projects

None yet

Milestone

9.0.0

Development

Successfully merging this pull request may close these issues.

New SearchValues<string> API doesn't use vectorized equality comparison once it finds a candidate

2 participants

@MihaZupan@stephentoub

[8]ページ先頭

©2009-2025 Movatter.jp