Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Encode dart2js source-map extensions in strings.
This reduce the memory footprint and cost of parsing these extensions. Another advantage is a reduction on the size of the .map files. On a large customer app, this was a 11% reduction, and the frames section was about 1Mb (excluding the extra names and uris added on the existing tables). The encoding works as follows: - minified names are written as a list of names and indices, in pairs. {'n1': 1, 'n2': 2} => 'n1,1,n2,2' - frames are encoded using a sequence of values with markers for the different kind of frames. Numbers are encoded using VLQ deltas. We use VLQ because it's already available to any parser that deals with the mappings). This change also uses the dart2js_tools parser implementation for all unit tests. Change-Id: Iacc2833c6517eb473955cc618adec501c610870f Reviewed-on: https://dart-review.googlesource.com/c/82780 Reviewed-by: Johnni Winther <johnniwinther@google.com> Commit-Queue: Sigmund Cherem <sigmund@google.com>
- Loading branch information
Showing
4 changed files
with
99 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters