commit | bb33a42e723b92259f6821a46e0a241397c8620b | [log] [tgz] |
---|---|---|
author | Jens Johansen <jensj@google.com> | Wed Sep 06 08:41:18 2017 +0200 |
committer | Jens Johansen <jensj@google.com> | Wed Sep 06 11:59:17 2017 +0000 |
tree | 55899aabbf1f1be67e27f7a2a0624655a08c6d13 | |
parent | d854c77e58de9ceb3b2d0355c439c593f3730b44 [diff] |
[kernel] Give random access to included source Before this CL to read the source (and line endings etc) for a specific file index, one had to read at least part of the data for all previous file indexes (e.g. read all the line endings). This CL introduces an index to the included sources meaning that we have random access based on file id, i.e. can go to the data concerning a specific file id in constant time. Benchmarks run with "time python tools/test.py -m release -cdartk language -j6" shows that - of 5 runs - the runtime has changed as follows: real: -3.93% +/- 1.03% user: -3.41% +/- 0.54% sys: No difference at 95% (statistics by math stolen from ministat) So it is ~4% faster to run the language tests (with above command), shaving approximately 9 seconds off the real runtime. Change-Id: I9e60a16958356b16b3da0bf6c01ffc5619deb976 Reviewed-on: https://dart-review.googlesource.com/3180 Reviewed-by: Samir Jindel <sjindel@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.