tree-sitter-go icon indicating copy to clipboard operation
tree-sitter-go copied to clipboard

Investigate performance characteristics

Open patrickt opened this issue 3 years ago • 1 comments

We’ve found in production that the go parser is surprisingly slow: it can pull 1.25 MB/sec, which is no slouch, but in contrast, a language like C#, which has much more syntax, is nearly twice as fast. This isn’t a showstopper, but it might be interesting to look into exactly why this is!

patrickt avatar Oct 07 '20 17:10 patrickt

This parser appears to handle Unicode characters correctly; might be it?

patrickt avatar Oct 07 '20 18:10 patrickt

I'm getting ~9100 bytes/ms aka 9mb/s for Go and ~8000 bytes/ms aka 8mb/s for C# on my machine, Go seems to be doing slightly better than C# currently, so closing

amaanq avatar Feb 19 '24 14:02 amaanq