Skip to content

[C++][IPC] ReadMessage could optionally take body_length #48846

@pitrou

Description

@pitrou

Describe the enhancement requested

ReadMessageAsync takes a body_length parameter and reads Message metadata + body in one go, but the blocking version ReadMessage reads the body length from the Message and issues a second read for the body.

We could add a ReadMessage overload that takes the body length as parameter and does a single read the async version does. It can then be used in the IPC file reader so that less IOs are issued (though it won't make a difference in the common case where the IPC file is memory-mapped).

Component(s)

C++

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions