We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
我其实没太看懂, 您的shaper版本是用来缓冲写操作的吧, 那么用队列的话是不是也可以? 性能上有没有什么差别?
The text was updated successfully, but these errors were encountered:
buffered chan无法模拟阻塞啊
Sorry, something went wrong.
因为很多的 stream 都要往 underlying connection 上写数据,就要用 shaper 模块管理这些写请求,然后统一经由 underlying connection 发送。shaper 模块采用了优先级队列(利用 golang 的 heap 功能),优先级是:非 PSH 请求的优先级最高(非 PSH 请求的优先级别一样),PSH 请求越早的优先级越高。
No branches or pull requests
我其实没太看懂, 您的shaper版本是用来缓冲写操作的吧, 那么用队列的话是不是也可以? 性能上有没有什么差别?
The text was updated successfully, but these errors were encountered: