Repository navigation
Commit a59a2b1
[ddc] Cache the library identifier used in interface type recipes
`interfaceTypeRecipe` uses `p.withoutExtension` and `pathToJSIdentifier`, which iterate on the entire string and are mostly redundant.
Adding this cache cuts compile time for heavy mixin libraries about 30%.
See related bug: flutter/flutter#190436
Change-Id: Iaef6d398d0a8807221c50cbaa733ed9c7b9e7dd0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/553180
Reviewed-by: Nate Biggs <[email protected]>
Commit-Queue: Mark Zhou <[email protected]>1 parent e3a317e commit a59a2b1
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
309 | 312 | | |
310 | 313 | | |
311 | 314 | | |
| |||
569 | 572 | | |
570 | 573 | | |
571 | 574 | | |
572 | | - | |
573 | | - | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
574 | 579 | | |
575 | 580 | | |
576 | 581 | | |
| |||
0 commit comments