commit | 415e6395cd8b441702a42b5d217882b804bf32b3 | [log] [tgz] |
---|---|---|
author | Sigmund Cherem <sigmund@google.com> | Mon Nov 05 18:24:33 2018 +0000 |
committer | William Hesse <whesse@google.com> | Wed Nov 07 06:34:00 2018 +0100 |
tree | fd3c9d54b128363e780f56380f3ce057a45576eb | |
parent | 0137edef8948ad6c3ce722f359dd4b39c93f449d [diff] |
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>
Dart is an open-source, scalable programming language, with robust libraries and runtimes, for building web, server, and mobile apps.
Visit the dartlang.org to learn more about the language, tools, getting started, and more.
Browse pub.dartlang.org for more packages and libraries contributed by the community and the Dart team.
If you want to build Dart yourself, here is a guide to getting the source, preparing your machine to build the SDK, and building.
There are more documents on our wiki.
The easiest way to contribute to Dart is to file issues.
You can also contribute patches, as described in Contributing.