Skip to content

[ty] Add regression-benchmark for attribute-assignment hang #18957

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

Merged
merged 1 commit into from
Jun 26, 2025

Conversation

sharkdp
Copy link
Contributor

@sharkdp sharkdp commented Jun 26, 2025

Summary

Adds a new micro-benchmark as a regression test for astral-sh/ty#627.

Test Plan

Ran the benchmark on the parent commit of 89d915a, and verified that it took > 1s, while it takes ~10 ms after the fix.

@sharkdp sharkdp added internal An internal refactor or improvement performance Potential performance improvement testing Related to testing Ruff itself labels Jun 26, 2025
Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@MichaReiser MichaReiser removed the internal An internal refactor or improvement label Jun 26, 2025
@sharkdp sharkdp merged commit d04e63a into main Jun 26, 2025
38 checks passed
@sharkdp sharkdp deleted the david/regression-benchmark-627 branch June 26, 2025 13:21
dcreager added a commit that referenced this pull request Jun 26, 2025
* main:
  [ty] Add regression-benchmark for attribute-assignment hang (#18957)
  [ty] Format conflicting types as an enumeration (#18956)
  [ty] Prevent union builder construction for just one declaration (#18954)
  [ty] Infer nonlocal types as unions of all reachable bindings (#18750)
  [`pyflakes`] Mark `F504`/`F522`/`F523` autofix as unsafe if there's a call with side effect (#18839)
  [`playground`] Add ruff logo docs link to Header.tsx (#18947)
  [ty] Reduce the overwhelming complexity of `TypeInferenceBuilder::infer_call_expression` (#18943)
  [ty] Add subdiagnostic about empty bodies in more cases (#18942)
  [ty] Move search path resolution to `Options::to_program_settings` (#18937)
  [`flake8-errmsg`] Extend `EM101` to support byte strings (#18867)
  Move big rule implementations (#18931)
  [`pylint`] Allow fix with comments and document performance implications (`PLW3301`) (#18936)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Potential performance improvement testing Related to testing Ruff itself
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants