Skip to content

Conversation

walterlv
Copy link
Member

@walterlv walterlv commented Sep 18, 2025

Fix Issues

-Fix #36

提升解析性能,标准化解析行为

4.1 的一步解析,相比于 4.0 的两步解析版本,性能提升了 85%。

相比于 ConsoleAppFramework:

  1. ConsoleAppFramework 性能极佳,为了性能牺牲了复杂的命令行语法,只能支持单一的命令行语法解析,且这种解析是目前任何主流命令行风格的子集,适合一些对性能要求极高的,目标人群为专业人员或计算机程序的软件。
  2. DotNetCampus.CommandLine 性能会差一点点,但在损失不多的情况下支持各种主流命令行风格的全标准解析,支持这些不同风格的各种命令行语法。适合对性能要求非常高,同时还要面向广大用户或不同喜好的人员的软件。
  3. 但无论如何,利用源生成器/拦截器、栈上解析(接近 0 分配),DotNetCampus.CommandLine 的性能依旧比其他众多命令行库要好得多
image image

@walterlv walterlv changed the title 一步解析命令 WIP:一步解析命令 Sep 18, 2025
@walterlv walterlv requested review from Copilot and lindexi September 24, 2025 01:21
Copy link

@Copilot 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

Copilot reviewed 122 out of 149 changed files in this pull request and generated 5 comments.

Files not reviewed (1)
  • src/DotNetCampus.CommandLine.Analyzer/Properties/Localizations.Designer.cs: Language not supported

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

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

Successfully merging this pull request may close these issues.

命令行参数定义的短/长名称出现冲突时,没有任何提示,编译错误和运行时异常都没有
2 participants