Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.

优化(Program.cs、*.csproj): 升级TouchSocket依赖并优化管道调度#10850

Merged
msmith-techempower merged 1 commit into
TechEmpower:masterfrom
RRQM:master
Mar 10, 2026
Merged

优化(Program.cs、*.csproj): 升级TouchSocket依赖并优化管道调度#10850
msmith-techempower merged 1 commit into
TechEmpower:masterfrom
RRQM:master

Conversation

@RRQM
Copy link
Copy Markdown
Contributor

@RRQM RRQM commented Mar 8, 2026

升级 TouchSocket 相关 NuGet 包至 4.1.6 版本,提升新特性与稳定性
将 PipeOptions 的 readerScheduler 和 writerScheduler 从 Inline 调整为 ThreadPool,提升高并发下的性能和响应能力 其余管道参数保持不变

升级 TouchSocket 相关 NuGet 包至 4.1.6 版本,提升新特性与稳定性
将 PipeOptions 的 readerScheduler 和 writerScheduler 从 Inline 调整为 ThreadPool,提升高并发下的性能和响应能力
其余管道参数保持不变
Copilot AI review requested due to automatic review settings March 8, 2026 09:47
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 8, 2026

The following frameworks were updated, pinging maintainers:
touchsocket: @RRQM

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.readerSchedulerPipeOptions.writerSchedulerPipeScheduler.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.

Comment on lines +13 to +14
<PackageReference Include="TouchSocket.Hosting" Version="4.1.6" />
<PackageReference Include="TouchSocket.WebApi" Version="4.1.6" />
Copy link

Copilot AI Mar 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR 描述写的是将 TouchSocket 相关 NuGet 包统一升级到 4.1.6,但当前仓库内仍存在 touchsocket/src/TouchSocketHttp31/TouchSocketHttp31.csproj 和 touchsocket/src/TouchSocketWebApi31/TouchSocketWebApi31.csproj 继续引用 TouchSocket.* 3.1.0。建议在描述中明确仅升级 4.x 相关项目,或同步评估/升级这些 *31 项目以避免读者误解。

Copilot uses AI. Check for mistakes.
@msmith-techempower msmith-techempower merged commit 7370eba into TechEmpower:master Mar 10, 2026
7 of 8 checks passed
DavideD pushed a commit to DavideD/FrameworkBenchmarks that referenced this pull request Mar 16, 2026
升级 TouchSocket 相关 NuGet 包至 4.1.6 版本,提升新特性与稳定性
将 PipeOptions 的 readerScheduler 和 writerScheduler 从 Inline 调整为 ThreadPool,提升高并发下的性能和响应能力
其余管道参数保持不变
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants