Skip to content

Conversation

@ilonatommy
Copy link
Member

@ilonatommy ilonatommy commented May 31, 2024

Fixes #101912.

Revision of the issue:

  • Currently skipped ranges are correct, no changes needed.
  • In ICU we have only 2 sets of chars:
    Equal same & HashCode same: 0,4%
    Equal different & HashCode different: 99,6%
  • In HybridGlobalization (with JS-based Equal method and Invariant-algo-based HashCode method) we have 3 sets:
    Equal same & HashCode same: 0,4%
    Equal different & HashCode different: 25,6%
    Equal different & HashCode same: 74% (additional collisions that slow down the hashing algo).
  • We can have test covering the whole unicode set, all locales (till now we had a few chosen unicodes, 2 locales) that will be running in OuterLoop - it's heavy and the result is expected to change rarely. This PR adds the test, removes the old, partial tests. Based on [browser] HybridGlobalization correct HashCode ranges of skipped unicodes #97351 (comment).

@ilonatommy ilonatommy added arch-wasm WebAssembly architecture area-System.Globalization os-browser Browser variant of arch-wasm labels May 31, 2024
@ilonatommy ilonatommy self-assigned this May 31, 2024
@dotnet-policy-service
Copy link
Contributor

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

@ilonatommy
Copy link
Member Author

/azp run runtime-libraries-mono outerloop

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ilonatommy
Copy link
Member Author

/azp run runtime-libraries-mono outerloop

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ilonatommy
Copy link
Member Author

/ba-g issues are not related

@ilonatommy ilonatommy merged commit 3750ac5 into dotnet:main May 31, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jul 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

arch-wasm WebAssembly architecture area-System.Globalization os-browser Browser variant of arch-wasm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[browser] HybridGlobalization correct HashCode ranges of skipped unicodes

3 participants