[libc-commits] [PATCH] D151041: [libc] More efficiently send bytes via `send_n` and `recv_n`
Joseph Huber via Phabricator via libc-commits
libc-commits at lists.llvm.org
Sat May 20 18:29:48 PDT 2023
jhuber6 created this revision.
jhuber6 added reviewers: jdoerfert, JonChesterfield, sivachandra, lntue, michaelrj.
Herald added subscribers: libc-commits, ecnelises, tschuett.
Herald added projects: libc-project, All.
jhuber6 requested review of this revision.
Currently we have the `send_n` and `recv_n` routines to stream data,
such as a string to print, to the other side. The first operation is to
send the size so the other side knows the number of bytes to recieve.
However, this wasted 56 bytes that could've been sent. This meant that
small values, like the arguments to a function to call on the host for
example, needed to perform an extra send. This patch sends the first 56
bytes in the first packet and continues if necessary.
Depends on D150992 <https://reviews.llvm.org/D150992>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D151041
Files:
libc/src/__support/OSUtil/gpu/io.cpp
libc/src/__support/RPC/rpc.h
libc/src/__support/RPC/rpc_util.h
libc/utils/gpu/loader/Server.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151041.524073.patch
Type: text/x-patch
Size: 6554 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230521/612f0251/attachment.bin>
More information about the libc-commits
mailing list