[SR-7744] [String] pre-normalized fast paths for String hashing #50284
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
performance
standard library
Area: Standard library umbrella
Additional Detail from JIRA
md5: 9a4ca002789c0a3c0f7dfcdbcdb2fb13
Issue Description:
Unlike String comparison, when we rolled out the new String hashing in terms of NFC-normalized UTF-16 code units we don't do large bulk pre-normalization detection, which should apply to the vast majority of Strings. We should use _prenormalQuickCheckYes, perhaps in large chunks, and feed the bytes in directly when possible before falling back to the normalized iterator.
The text was updated successfully, but these errors were encountered: