▲ | norir 3 days ago | ||||||||||||||||||||||||||||||||||||||||||||||
When I run a profiler on a compiler I wrote (which parses at somewhere between 500K-1MM lines per second without a separate lexer), parsing barely shows up. I'd be very surprised if the zig compiler is spending more than 5% of the time tokenizing. I assume there is some other use case that is motivating this work. | |||||||||||||||||||||||||||||||||||||||||||||||
▲ | tarix29 3 days ago | parent [-] | ||||||||||||||||||||||||||||||||||||||||||||||
I imagine it would be quite useful for building a responsive language server, where parsing is a more significant portion of the work | |||||||||||||||||||||||||||||||||||||||||||||||
|