优化(Program.cs、*.csproj): 升级TouchSocket依赖并优化管道调度#10850
Conversation
升级 TouchSocket 相关 NuGet 包至 4.1.6 版本,提升新特性与稳定性 将 PipeOptions 的 readerScheduler 和 writerScheduler 从 Inline 调整为 ThreadPool,提升高并发下的性能和响应能力 其余管道参数保持不变
|
The following frameworks were updated, pinging maintainers: |
There was a problem hiding this comment.
Pull request overview
该 PR 针对 frameworks/CSharp/touchsocket 下的 TouchSocket 基准实现进行更新:将 TouchSocket 相关 NuGet 依赖升级到 4.1.6,并将管道 PipeOptions 的调度器从 Inline 调整为 ThreadPool,以期改善高并发场景下的调度与响应。
Changes:
- 将 TouchSocket 相关包版本从 4.1.3 升级到 4.1.6(WebApi / Http / HttpPlatform 三个项目)
- 将 Receive/Send 的
PipeOptions.readerScheduler与PipeOptions.writerScheduler从PipeScheduler.Inline改为PipeScheduler.ThreadPool
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| frameworks/CSharp/touchsocket/src/TouchSocketWebApi/TouchSocketWebApi.csproj | 升级 TouchSocket.Hosting / TouchSocket.WebApi 到 4.1.6 |
| frameworks/CSharp/touchsocket/src/TouchSocketWebApi/Program.cs | 将收发 Pipe 调度器改为 ThreadPool |
| frameworks/CSharp/touchsocket/src/TouchSocketHttpPlatform/TouchSocketHttpPlatform.csproj | 升级 TouchSocket 到 4.1.6 |
| frameworks/CSharp/touchsocket/src/TouchSocketHttpPlatform/Program.cs | 将收发 Pipe 调度器改为 ThreadPool |
| frameworks/CSharp/touchsocket/src/TouchSocketHttp/TouchSocketHttp.csproj | 升级 TouchSocket.Http 到 4.1.6 |
| frameworks/CSharp/touchsocket/src/TouchSocketHttp/Program.cs | 将收发 Pipe 调度器改为 ThreadPool |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
| <PackageReference Include="TouchSocket.Hosting" Version="4.1.6" /> | ||
| <PackageReference Include="TouchSocket.WebApi" Version="4.1.6" /> |
There was a problem hiding this comment.
PR 描述写的是将 TouchSocket 相关 NuGet 包统一升级到 4.1.6,但当前仓库内仍存在 touchsocket/src/TouchSocketHttp31/TouchSocketHttp31.csproj 和 touchsocket/src/TouchSocketWebApi31/TouchSocketWebApi31.csproj 继续引用 TouchSocket.* 3.1.0。建议在描述中明确仅升级 4.x 相关项目,或同步评估/升级这些 *31 项目以避免读者误解。
升级 TouchSocket 相关 NuGet 包至 4.1.6 版本,提升新特性与稳定性 将 PipeOptions 的 readerScheduler 和 writerScheduler 从 Inline 调整为 ThreadPool,提升高并发下的性能和响应能力 其余管道参数保持不变
升级 TouchSocket 相关 NuGet 包至 4.1.6 版本,提升新特性与稳定性
将 PipeOptions 的 readerScheduler 和 writerScheduler 从 Inline 调整为 ThreadPool,提升高并发下的性能和响应能力 其余管道参数保持不变