TomasVotruba / lines

CLI tool for quick size measure of PHP project, runs anywhere
https://tomasvotruba.com/blog/easy-and-quick-way-to-measure-lines-of-code-in-php
MIT License
163 stars 4 forks source link

Consider using php-parser, but measure performance first #22

Closed TomasVotruba closed 1 year ago

TomasVotruba commented 1 year ago

Inspiration https://github.com/sebastianbergmann/lines-of-code

TomasVotruba commented 1 year ago

So it seems using stmts the speed is about 6-8x slower.

Saything that, in order to make use of php-parser, we'd have to add parallel runner first :)

TomasVotruba commented 1 year ago

Yet, it would be more reliable than tokens and could easily count any element.

TomasVotruba commented 1 year ago

Done :+1: Perfomance looks good