DescriptionTweaks to improve performance of type-inference.
- short-circuit cases where join yields dynamic
- improve performance of some queries like `hasOnlySubclasses` and how `contains` is implemented in `flatten`. We could also add caching for `length`, but not sure if we want to just have a static map or precompute the data in the class-hierarchy nodes.
On my experiments this reduces inference times more than 50% on a large customer app, while small apps have almost no change.
R=johnniwinther@google.com, sra@google.com
Committed: https://github.com/dart-lang/sdk/commit/913ca6683412d4e770bf9c1132b721a59f7e3e34
Patch Set 1 #Patch Set 2 : #Patch Set 3 : #
Total comments: 8
Patch Set 4 : #Patch Set 5 : #
Total comments: 1
Messages
Total messages: 10 (5 generated)
|