DescriptionOptimize splitting lines with many rules.
The constraint checking was quadratic in the number of rules in the
line which is bad on pathologically long lines like #456.
This gets it back down to linear. It takes that bug from 7 minutes to
about 20 seconds on my machine. The benchmark, which is closer to real
code, gets about 20% faster.
I'm still leaving #456 open because I think there's more work to be
done there, but this is a solid improvement overall.
R=kevmoo@google.com
Committed: https://github.com/dart-lang/dart_style/commit/10ad66e2915f8760aa0c07fac47f2fd7474b2b88
Patch Set 1 #
Total comments: 4
Messages
Total messages: 5 (1 generated)
|