File tools start a native helper process per call and send file bytes as Base64 JSON
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 30/100
- issue の種類
- リファクタリング
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- desktop
調査の方向性
Start in src/main/tools/file_operations.ts, where readProjectFile and changeProjectFiles spawn the file-helper process, and compare with how sandbox-helper keeps a long-lived process and exchanges line-delimited requests. Time one edit before changing anything, since the issue asks for measurement first. Done means either a measured case for the change with a chosen approach (persistent helper or binary framing), or a note that the cost is too small to justify it.
索引モデルが issue の本文から書いたものです。
説明
Problem
Left over from #297 (its third point; the size caps are fixed in 7383b07).
Every readProjectFile and changeProjectFiles call in src/main/tools/file_operations.ts spawns a new file-helper process and sends the before and after bytes as Base64 inside one JSON string, built and parsed on the main thread. With files now capped at 16 MB this cannot exhaust memory, but a large edit still costs a process start plus about 4/3 of the file size in Base64 on each side, and edit_file reads the file and then changes it, so two processes per edit.
Possible fix
- Keep one
file-helperprocess per project for the session and send it line-delimited requests, likesandbox-helper, restarting it if it exits. - Or send file bytes in a length-prefixed binary frame instead of Base64 JSON.
Measure first: if a typical edit spends little time here, this is not worth the extra state.
- 主要言語
- TypeScript
- スター
- 2
- フォーク
- 2
- 平均マージ
- 6時間 27分
- マージ済み PR(30日)
- 37
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PierrunoYT/patch のほかの issue
-
難易度 4/5 1〜2日 初心者へのやさしさ 52/100
PierrunoYT/patch#329 ·
メンテナーはふだん 1 日以内に返信
-
performance priority: low severity: low
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
PierrunoYT/patch#324 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 36/100
PierrunoYT/patch#272 ·
メンテナーはふだん 1 日以内に返信
-
enhancement priority: low security severity: low
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
PierrunoYT/patch#271 ·
メンテナーはふだん 1 日以内に返信
-
platform: macos priority: medium security severity: low tests
難易度 4/5 3〜5日 初心者へのやさしさ 15/100
PierrunoYT/patch#257 ·
メンテナーはふだん 1 日以内に返信
PierrunoYT/patch の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
MoonshotAI/kimi-code#4398 ·
メンテナーはふだん 1 日以内に返信
-
Xiaomi Mimo语音识别服务异常オープンpending triage
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
package-lock.json : les binaires natifs macOS et Linux de unrs-resolver ont disparu depuis #1823オープンbug dependencies
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
AxaFrance/design-system#2064 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100