Terminal engine: decouple PTY read from parse (gather ring + parse thread)
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 20/100
- Tipo de issue
- Refatoração
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- rust
- Domínio
- performance
Direção de pesquisa
Start by reading term/lifecycle.rs::spawn_reader, where the 64 KiB read and synchronous vt.feed call happen, alongside discussion #237 and the ghostty-org/ghostty#13209 change it points to. First task is measurement, not code: run the #239 harness as a baseline and capture pty read sizes per OS with strace (Linux) or dtrace (macOS). Done means end-to-end throughput improves on the harness with unchanged key-to-pixel latency, which requires designing the ring of 4 buffers and the parse thread under the VT lock — this is design work, not a starter edit.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Research: discussion #237 (Linux/engine comment). Applies to macOS, Windows and Linux (shared atlas-term). Measure with the #239 harness before and after.
Problem (read in code)
term/lifecycle.rs::spawn_reader reads 64 KiB and calls vt.feed synchronously on the async runtime worker; while it parses, the program can block on a full pty queue.
Change
Copy the structure of ghostty-org/ghostty#13209: a blocking reader filling a ring of 4 buffers and a parse thread that feeds under the VT lock; deliver the first short read at once so typing latency does not change.
Evidence
Ghostty: +25–55% end to end on macOS (M4 Max), part of it from the macOS 1 KiB pty read cap [their measurement]. On Linux only one user's run; read sizes there are not established.
Done when
Measured first (pty read sizes per OS, strace/dtrace); then end-to-end throughput up on #239 with unchanged key-to-pixel latency.
- Linguagem predominante
- Rust
- Estrelas
- 3
- Forks
- 1
- Merge médio
- 9h 51min
- PRs com merge (30d)
- 310
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de codeatlasdev/atlas
-
type: bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
codeatlasdev/atlas#597 ·
Mantenedores costumam responder em até 1 dia
-
area: ci os: linux type: bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
codeatlasdev/atlas#496 ·
Mantenedores costumam responder em até 1 dia
-
area: ci type: bug
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 68/100
codeatlasdev/atlas#596 ·
Mantenedores costumam responder em até 1 dia
-
os: linux type: bug
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 68/100
codeatlasdev/atlas#591 ·
Mantenedores costumam responder em até 1 dia
-
flaky: Windows scripts job hits test timeouts (check-dco, i18n runner/translate, check-changed)Abertaarea: ci os: windows type: bug
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 56/100
codeatlasdev/atlas#550 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
Todas as issues de codeatlasdev/atlas
Issues semelhantes
-
<input type="number"> misses text-entry leaf sizing in layoutTalvez já em andamento @GoCoder7 assumiu hoje. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
DioxusLabs/blitz#1675 ·
Mantenedores costumam responder em até 1 dia
-
[Bug]: NP 管理器文件编辑器里删除键无效Abertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
metasequoiaime/msime#11666 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
camunda/orchestration-cluster-api-rust#179 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 77/100
Mantenedores costumam responder em até 1 dia
-
bug drawings help wanted ui
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
userFRM/egui-charts#3479 ·
Mantenedores costumam responder em até 1 dia