Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong size used for vectorization check in BitArray #111558

Open
PranavSenthilnathan opened this issue Jan 17, 2025 · 3 comments · May be fixed by #111564
Open

Wrong size used for vectorization check in BitArray #111558

PranavSenthilnathan opened this issue Jan 17, 2025 · 3 comments · May be fixed by #111564
Labels
area-System.Collections good first issue Issue should be easy to implement, good for first-time contributors in-pr There is an active PR which will close this issue when it is merged tenet-performance Performance related issue
Milestone

Comments

@PranavSenthilnathan
Copy link
Member

Vector512 should be Vector128:

else if (Ssse3.IsSupported && ((uint)m_length >= Vector512<byte>.Count * 2u))

Found by @saucecontrol

@PranavSenthilnathan PranavSenthilnathan added area-System.Collections good first issue Issue should be easy to implement, good for first-time contributors labels Jan 17, 2025
@PranavSenthilnathan PranavSenthilnathan added this to the 10.0.0 milestone Jan 17, 2025
Copy link
Contributor

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

@stephentoub
Copy link
Member

This ends up only being a performance bug, not functional / reliability, correct? We'll end up falling back to the scalar path more often than we otherwise could?

@saucecontrol
Copy link
Member

saucecontrol commented Jan 17, 2025

Yep, that's all. I suggested it as a good first PR on the community discord.

@jkotas jkotas changed the title Wrong size used for bounds check in BitArray Wrong size used for vectorization check in BitArray Jan 17, 2025
@jkotas jkotas added the tenet-performance Performance related issue label Jan 17, 2025
AnsBalin added a commit to AnsBalin/runtime that referenced this issue Jan 18, 2025
@dotnet-policy-service dotnet-policy-service bot added the in-pr There is an active PR which will close this issue when it is merged label Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Collections good first issue Issue should be easy to implement, good for first-time contributors in-pr There is an active PR which will close this issue when it is merged tenet-performance Performance related issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants