OSDN Git Service

Reduce the number of Send requests over UDS per IPC invocation
authorAlex Vakulenko <avakulenko@google.com>
Wed, 6 Sep 2017 22:35:04 +0000 (15:35 -0700)
committerAlex Vakulenko <avakulenko@google.com>
Wed, 13 Sep 2017 16:58:33 +0000 (09:58 -0700)
commitadfc42ead3921f94339372ffb561bc3e8d7f3c86
treefd10a7027362f812214c8b42ee8c1577dca3fdb7
parentfcc70bdc9e380ef1a652b229910c6e333cf575c5
Reduce the number of Send requests over UDS per IPC invocation

We sent up to 3 separate send requests over a socket. Now combine
then into one sendmgs() to improve performance and thread scheduling.

This improves PDX/UDS performance by up to 2x in some cases.

Bug: 65379030
Test: Sailfish works normally. Was able to run VR apps.
Change-Id: I00734d2c3f06d7d42b089569a8cc11c2273a1b7f
libs/vr/libpdx_uds/client_channel.cpp
libs/vr/libpdx_uds/ipc_helper.cpp
libs/vr/libpdx_uds/private/uds/ipc_helper.h