ruff/crates/ruff_python_parser/src
Charlie Marsh 49fe1b85f2
Reduce size of `Expr` from 80 to 64 bytes (#9900)
## Summary

This PR reduces the size of `Expr` from 80 to 64 bytes, by reducing the
sizes of...

- `ExprCall` from 72 to 56 bytes, by using boxed slices for `Arguments`.
- `ExprCompare` from 64 to 48 bytes, by using boxed slices for its
various vectors.

In testing, the parser gets a bit faster, and the linter benchmarks
improve quite a bit.
2024-02-09 02:53:13 +00:00
..
lexer Use `memchr` for string lexing (#9888) 2024-02-08 17:23:06 +00:00
snapshots Index multiline f-strings (#9837) 2024-02-05 21:25:33 -05:00
context.rs Remove source path from parser errors (#9322) 2023-12-30 20:33:05 +00:00
function.rs Reduce size of `Expr` from 80 to 64 bytes (#9900) 2024-02-09 02:53:13 +00:00
invalid.rs Reduce `Result<Tok, LexicalError>` size by using `Box<str>` instead of `String` (#9885) 2024-02-08 20:36:22 +00:00
lexer.rs Reduce `Result<Tok, LexicalError>` size by using `Box<str>` instead of `String` (#9885) 2024-02-08 20:36:22 +00:00
lib.rs Approximate tokens len (#9546) 2024-01-19 17:39:37 +01:00
parser.rs Reduce size of `Expr` from 80 to 64 bytes (#9900) 2024-02-09 02:53:13 +00:00
python.lalrpop Reduce size of `Expr` from 80 to 64 bytes (#9900) 2024-02-09 02:53:13 +00:00
python.rs Reduce size of `Expr` from 80 to 64 bytes (#9900) 2024-02-09 02:53:13 +00:00
soft_keywords.rs Reduce `Result<Tok, LexicalError>` size by using `Box<str>` instead of `String` (#9885) 2024-02-08 20:36:22 +00:00
string.rs Reduce `Result<Tok, LexicalError>` size by using `Box<str>` instead of `String` (#9885) 2024-02-08 20:36:22 +00:00
token.rs Reduce `Result<Tok, LexicalError>` size by using `Box<str>` instead of `String` (#9885) 2024-02-08 20:36:22 +00:00
token_source.rs Remove type parameter from `parse_*` methods (#9466) 2024-01-11 19:41:19 +01:00
typing.rs Remove source path from parser errors (#9322) 2023-12-30 20:33:05 +00:00