Consider caching Alias & Command information
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- csharp, powershell
- 領域
- performance
研究方向
從 src/PowerShellEditorServices/Language/LanguageService.cs 第327行附近的關聯查找開始,然後檢視 #980 中描述的 Integrated Console 行為,包括 PSRL 的 ENTER 處理常式和 F8 的處理常式。定義當 PSIC 處於 dirty 狀態時,別名和命令資訊如何被快取及失效;完成標準是,只有在快取需要重新整理時,參照和 codeLens 請求才使用 pipeline。
由索引模型根據 Issue 內容生成。
描述
On every textDocument/references request and every textDocument/codeLens request, we rely on the pipeline to get the current available.
This is time consuming and bottlenecked by the pipeline thread. As such, we should consider caching this result based on the state of the Integrated Console.
Coming off the the back of #980, one of the patterns I liked was the ability to tell if something was run in the PSIC using PSRL’s ENTER handler and F8’s handler.
Bringing this concept in, we can use it as a “Dirty” check where we cache aliases and command info results, and only refresh the cache when the PSIC is Dirty.
That way, for example, our textDocument/references request and textDocument/codeLens request only rely on the pipeline once the cache is Dirty and an otherwise run unblocked giving us a perf improvement.
- 主要語言
- C#
- 星號
- 767
- 分支
- 266
- 平均合併
- 3 天 16 小時
- 30 天內合併 PR
- 1
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
PowerShell/PowerShellEditorServices 的其他 Issue
-
[Bug] None of the string overloads of `EditorExtensionServiceProvider.GetService()` work on .NET. 未關閉
PowerShell/PowerShellEditorServices#2331 · 1 個 reaction · 已指派 2 人 ·
-
Area-Language Server Issue-Enhancement
難度 4/5 3-5 天 新手友好度 48/100
PowerShell/PowerShellEditorServices#2315 · 1 則留言 ·
-
Area-Debugging Issue-Enhancement
PowerShell/PowerShellEditorServices#2294 · 1 個 reaction · 已指派 2 人 ·
-
Issue-Bug Needs: Triage
難度 4/5 3-5 天 新手友好度 48/100
PowerShell/PowerShellEditorServices#2293 · 1 則留言 ·
-
PowerShell/PowerShellEditorServices#2282 · 1 則留言 · 1 個 reaction · 已指派 2 人 ·
查看 PowerShell/PowerShellEditorServices 的全部 Issue
相似的 Issue
-
Documentation
難度 2/5 1-3 小時 新手友好度 75/100
cake-build/cake#5024 ·
-
Frontend status/draft TechnicalDebt
難度 2/5 1-2 天 新手友好度 75/100
Altinn/altinn-auth#4143 ·
-
.NET Flaky Test Testing Tests
難度 2/5 1-3 小時 新手友好度 84/100
getsentry/sentry-dotnet#5617 · 1 則留言 ·
-
:watch: Not Triaged dotnet-fsharp/svc
難度 1/5 1 小時以內 新手友好度 90/100
-
Client customer-reported needs-team-attention question Service Attention WebPubSub
難度 2/5 1-3 小時 新手友好度 76/100
Azure/azure-sdk-for-net#63292 · 3 則留言 · 1 個 reaction ·