Skip to content

Commit 90cb0d3

Browse files
authored
[ty] Reduce 'complex_constrained_attributes_2' runtime (astral-sh#19001)
Re: astral-sh#18979 (comment) Each check increases the runtime by a factor of 3, so this should be an order of magnitude faster.
1 parent 1297d6a commit 90cb0d3

File tree

1 file changed

+0
-4
lines changed
  • crates/ruff_benchmark/benches

1 file changed

+0
-4
lines changed

crates/ruff_benchmark/benches/ty.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -428,10 +428,6 @@ fn benchmark_complex_constrained_attributes_2(criterion: &mut Criterion) {
428428
return
429429
if isinstance(self.b, str):
430430
return
431-
if isinstance(self.b, str):
432-
return
433-
if isinstance(self.b, str):
434-
return
435431
"#,
436432
)
437433
},

0 commit comments

Comments
 (0)