Skip to content

add memory pool to alternative option #993

Description

@someview

Is there an existing feature request for this?

  • I have searched the existing feature requests

Is your feature request related to a problem? Please describe.

We have the problem receiving a lot of small websocket packet. The lib alloc a lot of small object:

// case 1
reader,_,_ :=conn.NextReader()
// case 2
 buf,_, _      := conn.ReadeMessage()

Describe the solution that you would like.

In great small packet case, a sync pool is needed. This cound be alternative option for the lib

Describe alternatives you have considered.

No response

Anything else?

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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