Terminal engine: single pass over PTY bytes before the parser

Abierto
#252 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
30/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
rust
Área
performance

Línea de trabajo

Start by reading crates/atlas-term/src/vt/mod.rs where Vt::feed calls ClearScan::scan, PixelScan::scan and the shell scanner before Processor::advance; then read vt/scan.rs and vt/pixel.rs to see the per-byte loops. Run the existing split-safe tests first to establish a green baseline, then use the #239 harness on the ASCII, unicode and agent TUI corpora to record parse-only MB/s before changing anything. Done means those numbers improve with no behaviour change and the split-safe tests still passing.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

area: terminal priority: 2 normal status: confirmed type: feature

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)

Vt::feed (crates/atlas-term/src/vt/mod.rs) scans every chunk with ClearScan::scan (vt/scan.rs, a per-byte loop) and feed_part with PixelScan::scan (vt/pixel.rs, per-byte match) and the shell scanner before Processor::advance. Only the shell scanner (SeqScan) jumps to the next ESC.

Change

Enter these state machines only at ESC (memchr), or merge them into one pass. The split-safe tests already exist and must stay green.

Why

Ghostty found 9–25% of parse time in short-run setup and scanning (ghostty-org/ghostty#13226) [their measurement].

Done when

Parse-only MB/s up on the #239 corpora (ASCII, unicode, agent TUI capture), no behaviour change.

Lenguaje dominante
Rust
Estrellas
3
Forks
1
Merge medio
9 h 51 min
PR fusionados (30 d)
310

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de codeatlasdev/atlas

Todos los issues de codeatlasdev/atlas

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.