You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 869a0a8
Browse filesBrowse the repository at this point in the historyBrowse files
This addresses some of the DDC Library Bundle-specific degradations in flutter/flutter#192687
AI-discovered + verified by hand. Saves ~5% DDC compile time for modestly sized apps.
1) In DdcLibraryBundleBuilder, we used to replace the first instance of metricLocationID, then every subsequent instance with '0'. This effectively costs us a full-JS-library scan per library. Now we just emit the metricsLocationID for the first library only.
2) In jsProgramToCode, use _replaceLast to avoid double-scanning the generated JS. We use _replaceLast since the sourcemap position is closer to the end of most libraries than the beginning.
3) Add encodedSourceMap to JSCode to avoid re-encoding the source map to JSON.
Change-Id: I57311aabc66954d5b56d395b584ddda2333412cd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/556520
Reviewed-by: Nicholas Shahan <[email protected]>
Commit-Queue: Mark Zhou <[email protected]>
Reviewed-by: Johnni Winther <[email protected]>
0 commit comments