mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 23:59:47 +00:00
47e9039512
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> |
||
---|---|---|
.. | ||
analysis_server | ||
analysis_server_client | ||
analyzer | ||
analyzer_cli | ||
analyzer_plugin | ||
async_helper | ||
compiler | ||
dart_internal | ||
dart_messages | ||
dev_compiler | ||
expect | ||
front_end | ||
js | ||
js_ast | ||
kernel | ||
meta | ||
microlytics | ||
sourcemap_testing | ||
status_file | ||
telemetry | ||
testing | ||
vm | ||
.gitignore | ||
BUILD.gn | ||
pkg.status |