DescriptionOptimize the message queue for many active ports with few messages.
The current message queue implementation is very inefficient if you are using
many active ports with few messages. This happens when you use 'call' a lot
on ports which is currently done in dart:io.
This patch does not remove messages from the queue when closing a port. Instead
it drops messages for closed ports when it processes them. This dramatically
speeds up dart:io benchmarks that enqueue tons of writes on a file output
stream.
R=iposva@google.com
BUG=http://dartbug.com/6911
Committed: https://code.google.com/p/dart/source/detail?r=16388
Patch Set 1 #Patch Set 2 : Lookup ReceivePort in Dart code #
Total comments: 2
Patch Set 3 : Address comment. #Patch Set 4 : Moved clearing to MessageQueue destructor #
Total comments: 1
Patch Set 5 : Merge with caching changes. #
Messages
Total messages: 9 (0 generated)
|