dart-sdk/pkg
Jens Johansen 47e9039512 Don't encode strings up front; don't toString uris
Change kernel serialization so that
a) We don't UTF8 encode strings up front, but only as needed
   (if nothing else it makes it more obvious where the cost of stuff is)
b) Don't call toString on URIs to save them in a StringIndexer, only to
   parse the string later to get a URI back again.

This shaves a bit of the serialization time.
Timings from running `flutter test` in flutter/packages/flutter:

Without change:
```
02:14 +2438 ~18: All tests passed!
02:12 +2438 ~18: All tests passed!
02:14 +2438 ~18: All tests passed!
```

with change:
```
02:10 +2438 ~18: All tests passed!
02:11 +2438 ~18: All tests passed!
02:09 +2438 ~18: All tests passed!
```

 => -2.5% +/- 1.83615%

Change-Id: I03e651bbef23445fb1901452a4efcc732789a168
Reviewed-on: https://dart-review.googlesource.com/51302
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Kevin Millikin <kmillikin@google.com>
2018-05-02 07:42:40 +00:00
..
analysis_server Change 'Extract Widget' to generate named constructor parameters, with 'key'. 2018-04-30 16:49:00 +00:00
analysis_server_client Clean up some hints 2018-03-26 17:39:18 +00:00
analyzer Don't store bytes in the file cache. 2018-05-01 21:11:04 +00:00
analyzer_cli Enable preview-dart-2 as default for analyzer. 2018-04-26 17:01:12 +00:00
analyzer_plugin Re-land "Clean up the use of deprecated API in the analyzer_plugin package". 2018-05-01 21:08:04 +00:00
async_helper Update language_2/await_test.dart to use async_helper. 2017-12-06 12:05:59 +00:00
compiler dart2js: Register inlined native methods for dump info 2018-05-01 18:22:25 +00:00
dart_internal Make warning more warning-y. 2018-03-02 02:04:44 +00:00
dart_messages Remove uses of upper-case constants in remaining SDK code. 2018-04-16 16:11:57 +00:00
dev_compiler Stop ignoring explicit ("as") cast failures on all but function types. 2018-04-30 23:05:24 +00:00
expect Clean up documentation of implicit new/const insertions tests. 2018-04-10 14:49:41 +00:00
front_end Don't encode strings up front; don't toString uris 2018-05-02 07:42:40 +00:00
js Making license files consistent across all packages 2017-09-28 19:33:08 +00:00
js_ast Remove Dart 2 errors in package:js_ast 2018-03-30 11:21:21 +00:00
kernel Don't encode strings up front; don't toString uris 2018-05-02 07:42:40 +00:00
meta Add a README file to the meta package 2017-12-17 21:53:17 +00:00
microlytics
sourcemap_testing Add omit-implicit-checks mode to equivalence tests. 2018-05-01 12:41:59 +00:00
status_file Always call writeAnnotationList to write annotations. 2018-04-13 12:41:17 +00:00
telemetry Remove uses of upper-case constants in remaining SDK code. 2018-04-16 16:11:57 +00:00
testing Add testing chain to validate messages.yaml 2018-02-28 11:02:23 +00:00
vm [VM] Set up package config value when invoking the front end for compilation, 2018-05-01 22:57:35 +00:00
.gitignore
BUILD.gn
pkg.status Fix bots after preview-dart2 was switched on by default. 2018-04-26 20:09:56 +00:00