什麼是 csharp-type-design-performance?
設計 .NET 類型以提高效能。密封類,使用唯讀結構,更喜歡靜態純函數,避免過早枚舉,並選擇正確的集合類型。 來源:foxminchan/bookworm。
設計 .NET 類型以提高效能。密封類,使用唯讀結構,更喜歡靜態純函數,避免過早枚舉,並選擇正確的集合類型。
透過命令列快速安裝 csharp-type-design-performance AI 技能到你的開發環境
來源:foxminchan/bookworm。
Sealing classes enables JIT devirtualization and communicates API intent.
Structs should be readonly when immutable. This prevents defensive copies.
| Small (≤16 bytes typically) | Larger objects | | Short-lived | Long-lived | | Frequently allocated | Shared references needed | | Value semantics required | Identity semantics required | | Immutable | Mutable state |
設計 .NET 類型以提高效能。密封類,使用唯讀結構,更喜歡靜態純函數,避免過早枚舉,並選擇正確的集合類型。 來源:foxminchan/bookworm。
為搜尋與 AI 引用準備的穩定欄位與指令。
npx skills add https://github.com/foxminchan/bookworm --skill csharp-type-design-performance設計 .NET 類型以提高效能。密封類,使用唯讀結構,更喜歡靜態純函數,避免過早枚舉,並選擇正確的集合類型。 來源:foxminchan/bookworm。
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/foxminchan/bookworm --skill csharp-type-design-performance 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/foxminchan/bookworm