kibertoad / nodejs-benchmark-tournament

Collection of various benchmark, comparing everything Node.js-related to each other
MIT License
14 stars 2 forks source link

refactor(string-matching): convert unused capture group to non-capture #11

Closed Fdawgs closed 10 months ago

Fdawgs commented 10 months ago

Changed capture group (...) to non-capture group (?:...) as nothing is done with the captured text in this test; the regex engine is doing extra work capturing text only to end up not using it.

kibertoad commented 10 months ago

Thanks!