Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

[System.Globalization.Native] Fix performance regression on glibc on Linux #24099

Merged
merged 1 commit into from Apr 19, 2019

Conversation

filipnavara
Copy link
Member

Fixes dotnet/aspnetcore#9404, caused by #22390.

Running the tsearch vs. tfind test code on Ubuntu in Azure resulted in 18% performance improvement in favour of running tfind first and only using tsearch as fallback. On macOS the performance is nearly identical.

/cc @janvorli @stephentoub

Copy link
Member

@stephentoub stephentoub left a comment

Choose a reason for hiding this comment

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

Thanks.

@filipnavara
Copy link
Member Author

Btw, realistically there's only 32 different variations of CompareOptions that generate different collators. Using a binary search tree for that looks like quite an overkill. I plan to address that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants