The pldm daemon currently receives a PLDM response message as a std::vector<uint8_t> from a command handler, and then inserts at the beginning the MCTP EID and Type (as required by the mctp demux daemon). Insertion at the beginning of the vector is not optimal - it requires O(n) element moves.
This issue is to come up with an optimization - either be using a different data struct or reserving space at the beginning for the vector, or something else.
The pldm daemon currently receives a PLDM response message as a
std::vector<uint8_t>
from a command handler, and then inserts at the beginning the MCTP EID and Type (as required by the mctp demux daemon). Insertion at the beginning of the vector is not optimal - it requires O(n) element moves.This issue is to come up with an optimization - either be using a different data struct or reserving space at the beginning for the vector, or something else.