commit | ac0559588979d48d72339389059600a440abff9a | [log] [tgz] |
---|---|---|
author | Jens Johansen <jensj@google.com> | Mon Jul 09 10:56:05 2018 +0000 |
committer | commit-bot@chromium.org <commit-bot@chromium.org> | Mon Jul 09 10:56:05 2018 +0000 |
tree | 0240e8c86ed5ec456b3002af57b637f8f199a613 | |
parent | d26dba1619f8a7da75aebd762f1d7e5b02d72d78 [diff] |
Memory file system returns Uint8List from readAsBytes Before this CL the memory file system would return a list - not a Uint8List - when answering `readAsBytes`. This for instance caused the ~5.5MB kernel platform file to take up ~42.5 MB of memory (at least on a 64 bit linux system). This CL changes that to return a Uint8List, saving ~37 MB of memory when using the kernel platform file, as for instance done when running a dart file with the VM. Change-Id: I5e44c342c89e6293684614c1d0b357cc3a4936d6 Reviewed-on: https://dart-review.googlesource.com/63949 Reviewed-by: Peter von der Ahé <ahe@google.com> Commit-Queue: Jens Johansen <jensj@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.