Files
ruff/crates/ruff_python_stdlib/src/str.rs
Charlie Marsh 307f7a735c Avoid allocations in lowercase comparisons (#5137)
## Summary

I noticed that we have a few hot comparisons that involve called
`s.to_lowercase()`. We can avoid an allocation by comparing characters
directly.
2023-06-16 08:57:43 -04:00

3.0 KiB