[all-commits] [llvm/llvm-project] 45b899: [libc] Cache ownership of the shared buffer in the...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Mon May 15 04:16:39 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 45b899b92f5762c15d435e58666f5eee18e73b40
https://github.com/llvm/llvm-project/commit/45b899b92f5762c15d435e58666f5eee18e73b40
Author: Joseph Huber <jhuber6 at vols.utk.edu>
Date: 2023-05-15 (Mon, 15 May 2023)
Changed paths:
M libc/src/__support/RPC/rpc.h
Log Message:
-----------
[libc] Cache ownership of the shared buffer in the port
This patch adds another variable to cache cases where we know that we
own the buffer. This allows us to skip the atomic load on the inbox
because we already know its state. This is legal immediately after
opening a port, or when sending immediately after a recieve. This
caching nets a significant (~17%) speedup for the basic open, send,
recieve combination.
Reviewed By: JonChesterfield
Differential Revision: https://reviews.llvm.org/D150516
More information about the All-commits
mailing list