Skip to content

Reuse memory for messages #674

@Shatur

Description

@Shatur

Right now we create Bytes from a Vec for messages that are later drained by backends. But it would be nicer if we could receive Vecs once they are sent, for reuse. Backends could use Bytes::try_into_mut and store them in a buffer. Later, the integration crate could feed them back to Replicon.

Right now, no backend provides this feature, but once someone implements it, it's worth exploring.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions