-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use cursor based lexer #6012
Use cursor based lexer #6012
Conversation
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
1aaef3e
to
a8c1609
Compare
PR Check ResultsEcosystemℹ️ ecosystem check detected changes. (+12, -12, 0 error(s)) airflow (+12, -12)
- tests/api_connexion/endpoints/test_dag_endpoint.py:124:25: S108 Probable insecure usage of temporary file or directory: "/tmp/dag_" + tests/api_connexion/endpoints/test_dag_endpoint.py:124:27: S108 Probable insecure usage of temporary file or directory: "/tmp/dag_" - tests/api_connexion/endpoints/test_import_error_endpoint.py:239:49: S108 Probable insecure usage of temporary file or directory: "/tmp/file_" + tests/api_connexion/endpoints/test_import_error_endpoint.py:239:51: S108 Probable insecure usage of temporary file or directory: "/tmp/file_" - tests/api_connexion/endpoints/test_import_error_endpoint.py:241:48: S108 Probable insecure usage of temporary file or directory: "/tmp/file_" + tests/api_connexion/endpoints/test_import_error_endpoint.py:241:50: S108 Probable insecure usage of temporary file or directory: "/tmp/file_" - tests/api_connexion/endpoints/test_import_error_endpoint.py:242:48: S108 Probable insecure usage of temporary file or directory: "/tmp/file_" + tests/api_connexion/endpoints/test_import_error_endpoint.py:242:50: S108 Probable insecure usage of temporary file or directory: "/tmp/file_" - tests/api_connexion/endpoints/test_import_error_endpoint.py:244:56: S108 Probable insecure usage of temporary file or directory: "/tmp/file_" + tests/api_connexion/endpoints/test_import_error_endpoint.py:244:58: S108 Probable insecure usage of temporary file or directory: "/tmp/file_" - tests/api_connexion/endpoints/test_import_error_endpoint.py:251:26: S108 Probable insecure usage of temporary file or directory: "/tmp/file_" + tests/api_connexion/endpoints/test_import_error_endpoint.py:251:28: S108 Probable insecure usage of temporary file or directory: "/tmp/file_" - tests/api_connexion/endpoints/test_import_error_endpoint.py:269:26: S108 Probable insecure usage of temporary file or directory: "/tmp/file_" + tests/api_connexion/endpoints/test_import_error_endpoint.py:269:28: S108 Probable insecure usage of temporary file or directory: "/tmp/file_" - tests/api_connexion/endpoints/test_import_error_endpoint.py:285:26: S108 Probable insecure usage of temporary file or directory: "/tmp/file_" + tests/api_connexion/endpoints/test_import_error_endpoint.py:285:28: S108 Probable insecure usage of temporary file or directory: "/tmp/file_" - tests/system/providers/google/cloud/dataproc/example_dataproc_pyspark.py:64:23: S108 Probable insecure usage of temporary file or directory: "/tmp/" + tests/system/providers/google/cloud/dataproc/example_dataproc_pyspark.py:64:25: S108 Probable insecure usage of temporary file or directory: "/tmp/" - tests/system/providers/google/cloud/dataproc/example_dataproc_sparkr.py:63:23: S108 Probable insecure usage of temporary file or directory: "/tmp/" + tests/system/providers/google/cloud/dataproc/example_dataproc_sparkr.py:63:25: S108 Probable insecure usage of temporary file or directory: "/tmp/" - tests/system/providers/google/cloud/ml_engine/example_mlengine.py:61:15: S108 Probable insecure usage of temporary file or directory: "/tmp/" + tests/system/providers/google/cloud/ml_engine/example_mlengine.py:61:30: S108 Probable insecure usage of temporary file or directory: "/tmp/" - tests/system/providers/google/cloud/ml_engine/example_mlengine_async.py:61:15: S108 Probable insecure usage of temporary file or directory: "/tmp/" + tests/system/providers/google/cloud/ml_engine/example_mlengine_async.py:61:30: S108 Probable insecure usage of temporary file or directory: "/tmp/"
BenchmarkLinux
Windows
|
e1cddf1
to
a46b9c0
Compare
defc8d0
to
78b0ee8
Compare
@@ -1 +1 @@ | |||
broken "§=($/=(") | |||
broken "§=($/=() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to create another lexer error because the lexer no longer marks in-balanced parentheses pairs as errors (because it also doesn't complain about [{(]})
as unbalanced even though the parens are closed in the wrong order.
The ecosystem changes are due to the now more accurate ranges of f-string parts. |
78b0ee8
to
e07af0e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
The benchmarks look great! |
Summary
This pulls in the cursor-based Lexer implementation that significantly speeds up performance. The RustPython-parser PR contains a more in-depth description of the change.
Test Plan
cargo test, ecosystem check