alecthomas / alecthomas/participle

Improve performance

Aperta
#103 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Go
Stelle
3.9k
Fork
213
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I'm now largely happy with the design and implementation of Participle, so it's time to start thinking about performance.

```
$ go test -v -bench=. ./
goos: darwin
goarch: amd64
pkg: github.com/alecthomas/participle/_examples/µc
BenchmarkParser
BenchmarkParser-12 163 7393469 ns/op 674820 B/s 5350378 B/op 83749 allocs/op
PASS
ok github.com/alecthomas/participle/_examples/µc 1.958s
```

The parser generates a *lot* of garbage now, and throughput is not great.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.