mirror of
https://github.com/dart-lang/sdk
synced 2024-11-05 18:22:09 +00:00
d0052c1b31
processIncomingMessage() was creating List<int> to hold uncompressed bytes, which is very wastefull if size of the message is large (spending a word for each byte). Changed processIncomingMessage() to use BytesBuilder for uncompressed bytes. This fixes flaky out of memory failure on service/get_vm_timeline_rpc_test with bytecode in dartk-optcounter-linux-release-ia32 configuration. In that test size of uncompressed message exceeded 130MB, causing 1GB memory allocation (512MB List was expanded). Change-Id: Ic5a78a13bd431f5ad97496907a84a3f7ba01c1fa Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/117121 Reviewed-by: Ryan Macnak <rmacnak@google.com> Commit-Queue: Alexander Markov <alexmarkov@google.com> |
||
---|---|---|
.. | ||
bin | ||
lib | ||
api_readme.md | ||
BUILD.gn |