Terminal engine: single pass over PTY bytes before the parser
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 30/100
- Type d'issue
- Refactorisation
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- rust
- Domaine
- performance
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- Rust
- Étoiles
- 3
- Forks
- 1
- Merge moyen
- 9 h 51 min
- PR mergées (30 j)
- 310
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de codeatlasdev/atlas
-
type: bug
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
codeatlasdev/atlas#597 ·
Les mainteneurs répondent en général sous 1 jour
-
area: ci os: linux type: bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
codeatlasdev/atlas#496 ·
Les mainteneurs répondent en général sous 1 jour
-
area: ci type: bug
Difficulté 3/5 1-2 jours Accessibilité débutants 68/100
codeatlasdev/atlas#596 ·
Les mainteneurs répondent en général sous 1 jour
-
os: linux type: bug
Difficulté 3/5 1-2 jours Accessibilité débutants 68/100
codeatlasdev/atlas#591 ·
Les mainteneurs répondent en général sous 1 jour
-
flaky: Windows scripts job hits test timeouts (check-dco, i18n runner/translate, check-changed)Ouvertearea: ci os: windows type: bug
Difficulté 3/5 1-2 jours Accessibilité débutants 56/100
codeatlasdev/atlas#550 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de codeatlasdev/atlas
Issues similaires
-
marketing
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
kinqsradio/orbyn-engineering#729 ·
-
Plans page scenario races Shift+Tab against the plan list being drawn again in Firefox and WebKitOuvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 83/100
nledford/Ladderback#1091 ·
Les mainteneurs répondent en général sous 1 jour
-
bug fix packaging ui user-sprint
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Vondor/KassenSturz#1197 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Les mainteneurs répondent en général sous 1 jour