allow streaming formatting

Aperta
#6,944 4 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

C-feature-request P-low

Feature Request

Summary

Allow streaming formatting

Motivation

Windows process startup time is 30ms. Therefore, a function call to format rust code using rustfmt will take at least 30ms on windows. If streaming was allowing using start and end markers, then it would be possible to build a rustfmt process pool that could format rust code without the 30ms startup overhead.

I don't think this would add much maintenance burden, because this would just call format_string internally.

Related configuration options
Lingua principale
Rust
Stelle
7.1k
Fork
1.2k
Merge medio
1g 4h
PR unite (30g)
20

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di rust-lang/rustfmt

Tutte le issue di rust-lang/rustfmt

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.