Skip to content

Reduce memory allocations on fixed size messages #18

@TwoTenPvP

Description

@TwoTenPvP

Certain messages sent by the MLAPI has a fixed length. (Fixed as in constant size or a size that depends on the NetworkConfig which won't change during runtime).
These messages currently allocate their memory at runtime. These could be preallocated when the MLAPI get's initialized. The allocations are not big, just a few bytes but there is no reason not to pre-allocate them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:mediumThis issue has medium priority and may take some time to be resolvedtype:featureNew feature, request or improvement

    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