Skip to content

The pooling implementation is lacking #12

@metalgearsloth

Description

@metalgearsloth

Okay so I did some digging around and noticed some things:

  • NetBuffer / NetMessage have recycling and the data is dumped back into a pool, however the default size is tiny and it continuously re-allocates. This is probably better off just using its own created ArrayPool instead which would dramatically reduce the heap allocations for Lidgren for us.

  • Delayed packets allocates a lot and should also be using GetStorage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions