Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linkedbuffer问题和server option问题 #326

Closed
someview opened this issue Apr 12, 2024 · 2 comments
Closed

linkedbuffer问题和server option问题 #326

someview opened this issue Apr 12, 2024 · 2 comments

Comments

@someview
Copy link

  1. 目前netpoll里面的linkedbuffer即使使用了sync.pool以后,也无法复用,是否可以考虑允许linkedbuffer复用呢
  2. linkedbuffer的内存分配策略,是否可以通过new linkedbuffer的时候,设置呢。不同的场景下需要不同的默认尺寸。一个应用程序里面,可能有多个场景,需要不同的策略。
  3. new event loop的时候是否可以增加一个option来控制内存初始化的参数呢。 目前,基于netpoll实现一个websocket协议库(用于长连接网关), 海量的长连接,但是其中活跃的比较少,此时,会浪费大量内存
@joway
Copy link
Member

joway commented Apr 12, 2024

  1. 第一个问题为啥说无法复用呢?顶多是无法100%复用吧?
  2. 第二个问题可以考虑允许配置
  3. 同第一个

@joway joway closed this as completed May 29, 2024
@joway
Copy link
Member

joway commented May 29, 2024

close since questioner no reply with long time

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

No branches or pull requests

2 participants