Currently, we create a message object for every message. Since the messages are processed in sequence, we should be able to reuse messages of the same type (they use the exact number of bits). A message can just be a pointer to a location in the message buffer. Given a message type, you can either overwrite the allocated memory or maybe even just read directly from the buffer.
Currently, we create a message object for every message. Since the messages are processed in sequence, we should be able to reuse messages of the same type (they use the exact number of bits). A message can just be a pointer to a location in the message buffer. Given a message type, you can either overwrite the allocated memory or maybe even just read directly from the buffer.