Skip to content

Conversation

@cosminvlad
Copy link
Contributor

Specifying StringComparison.Ordinal or StringComparison.OrdinalIgnoreCase where possible will make operations faster, especially for large queries, especially when running on Linux. The culture sensitive string operations are significantly slower on Linux compared to Windows (dotnet/runtime#37919).

I have found SetParameterList to be a small hotspot in an app that uses particularly large queries (7-8 table joins, lots of columns for each).

Specifying StringComparison.Ordinal where possible will make operations
faster, especially for large queries, especially when running on Linux.
The culture sesitive string operations are significantly slower on Linux
compared to Windows (dotnet/runtime#37919).
@JonathanMagnan JonathanMagnan self-assigned this Dec 8, 2021
@JonathanMagnan JonathanMagnan merged commit 959a112 into zzzprojects:master Dec 8, 2021
@JonathanMagnan
Copy link
Member

Hello @cosminvlad ,

The v3.2.3 has been released with your fix.

Thank you for your contribution ;)

Best Regards,

Jon

@cosminvlad cosminvlad deleted the fix/string_perf branch December 8, 2021 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants