3 ms·
I have done some optimisations in Go regex recently; I have a talk coming up on Saturday: https://fosdem.org/2022/schedule/event/go_finite_automata/ https://fo
by bboreham 5y ago
I have done some optimisations in Go regex recently; I have a talk coming up on Saturday:
https://fosdem.org/2022/schedule/event/go_finite_automata/ https://fosdem.org/2022/schedule/event/go_finite_automata/
This repo collects all the changes so you can try them out: https://github.com/grafana/regexp/tree/speedup#readme https://github.com/grafana/regexp/tree/speedup#readme
- benhoyt 5y agoThat's excellent! Those all look like pretty nice small code changes that all add up. I especially like the very small "avoid copy" change (https://go-review.googlesource.com/c/go/+/355789 https://go-review.googlesource.com/c/go/+/355789) that adds up to a 30% speedup on many benchmarks. I hope they get included in Go 1.19. Good work!