Closed deathaxe closed 7 years ago
Actually it's a fairly simple optimization to ignore captures if none of the captures in the expression are used - syntect does this, for example.
ST seems not. I did several benchmarks with my CNC package. It turned out avoiding captures can easily increase performance by 10 to 15%.
I believe it is misleading to use captures without the intend of actually capturing them, regardless of runtime performance, so thanks for that.
Merged (and rebased) as e5cc2dd50968d5ac89136602c71d636582389878.
Captures take some time to be handled and thus should be avoided where possible.