mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 06:37:35 +00:00
LibIPC: Avoid redundant copy of every tranferred IPC message
For every IPC message sent, we currently prepend the message size to the IPC message buffer. This incurs the cost of copying the entire message to its newly allocated position. Instead, reserve the bytes for the size at the front of the buffer upon creation. Prevent dangerous access to the buffer with specific public methods.
This commit is contained in:
parent
f2db700ae7
commit
34160743dc
4 changed files with 48 additions and 14 deletions
|
@ -13,7 +13,7 @@ namespace IPC {
|
|||
class Decoder;
|
||||
class Encoder;
|
||||
class Message;
|
||||
struct MessageBuffer;
|
||||
class MessageBuffer;
|
||||
class File;
|
||||
class Stub;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue