From 527a6e1b6bdf00a4d8cb020914067612b6ecde99 Mon Sep 17 00:00:00 2001 From: jam Date: Thu, 23 Jul 2015 16:52:38 -0700 Subject: Use thread-safe send when using Mojo. All the work was done in r325911 by morrita. It looks like when the change landed it was disabled though, so this change just turns it on. https://groups.google.com/a/chromium.org/d/msg/mojo-dev/gSidpDqtUFE/TY5qeUlD-mIJ has more timing, but the summary is that this makes MojoChannelPerfTest.ChannelProxyPingPong faster by 15% on Windows and roughly 40% on Linux. In total, ChannelProxyPingPong is faster using Mojo compared to Chrome IPC by roughly 70% on Windows and on Linux it's about the same or slightly faster. BUG=472113 Review URL: https://codereview.chromium.org/1246953003 Cr-Commit-Position: refs/heads/master@{#340216} --- ipc/mojo/ipc_channel_mojo.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipc') diff --git a/ipc/mojo/ipc_channel_mojo.cc b/ipc/mojo/ipc_channel_mojo.cc index 4d5b815..08c3458 100644 --- a/ipc/mojo/ipc_channel_mojo.cc +++ b/ipc/mojo/ipc_channel_mojo.cc @@ -447,7 +447,7 @@ bool ChannelMojo::Send(Message* message) { } bool ChannelMojo::IsSendThreadSafe() const { - return false; + return true; } base::ProcessId ChannelMojo::GetPeerPID() const { -- cgit v1.1