ruff/crates/ruff_python_stdlib/src
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
..
builtins.rs Rename ruff_python crate to ruff_python_stdlib (#3354) 2023-03-06 13:43:22 +00:00
future.rs Rename ruff_python crate to ruff_python_stdlib (#3354) 2023-03-06 13:43:22 +00:00
identifiers.rs Move keyword checks into is_identifier (#3834) 2023-03-31 16:56:33 -04:00
keyword.rs Move keyword checks into is_identifier (#3834) 2023-03-31 16:56:33 -04:00
lib.rs Introduce a ruff_python_semantic crate (#3865) 2023-04-04 16:50:47 +00:00
logging.rs Introduce a ruff_python_semantic crate (#3865) 2023-04-04 16:50:47 +00:00
path.rs Lint pyproject.toml (#4496) 2023-05-25 12:05:28 +00:00
str.rs Avoid allocations in lowercase comparisons (#5137) 2023-06-16 08:57:43 -04:00
sys.rs Rename ruff_python crate to ruff_python_stdlib (#3354) 2023-03-06 13:43:22 +00:00
typing.rs Enable automatic rewrites of typing.Deque and typing.DefaultDict (#4420) 2023-05-15 22:33:24 +00:00