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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LG. I think the expected use case of this port is an object that gets disassembled by SROA so there's a decent chance the extra boolean is removed before codegen.
libc/src/__support/RPC/rpc.h | ||
---|---|---|
343 | This out field could be a bool too, it's a similar sort of thing to receive/owns_buffer |
This out field could be a bool too, it's a similar sort of thing to receive/owns_buffer