#993·websocket

add memory pool to alternative option

Author: someviewCreated Jul 15, 2025Updated Jul 15, 2025

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