Save unnecessary RuneCountInString
#53942
Labels
type/enhancement
The issue or PR belongs to an enhancement.
RuneCountInString
#53942
Enhancement
RuneCountInString
can be unexpectedly time-consuming for certain workloads. Since the number of runes must be smaller than or equal to the length of the string, we can fast check the length first. Only calculate the number of runes when necessary.The text was updated successfully, but these errors were encountered: