5 ms·
Shameless plug of `loc`, a rust implementation of `cloc` that is 100+ times faster: https://github.com/cgag/loc https://github.com/cgag/loc
by johnp_ 10y ago
Shameless plug of `loc`, a rust implementation of `cloc` that is 100+ times faster:
https://github.com/cgag/loc https://github.com/cgag/loc
- swah 10y ago... in Rust!
- kybernetyk 10y agoHas it any remarkable features other than "it's written in Rust"?
- steveklabnik 10y ago100x faster sounds like a remarkable feature to me. (I haven't tried this yet, though I do use tokei, which is faster but not this fast. Been meaning to try it out.)
- serge2k 10y ago> that is 100+ times faster is that not enough?
- ams6110 10y agoDepends on how slow cloc is. 100x faster than "already very fast" is not going to be a perceptible benefit.
- steveklabnik 10y agoThe readme talks about dragonfly BSD's codebase; almost two minutes for cloc, just over one second for loc. That's a noticeable difference.
- kybernetyk 10y agoBut how often do you cloc the BSD codebase? I do clocs maybe once a week. So waiting for 2 minutes isn't really a huge issue here. (Well, it's less than 2 minutes for my code bases). Smells like premature optimization ;)
- steveklabnik 10y agoThis is totally true as well.
- braveo 10y agolol. I too get tired of seeing all this "take X and write it in rust". OTOH it's a new area and the younger crowd gets to try and make a name for themselves in something that isn't already fully established. But seriously, I've never thought to myself "cloc is too slow" and even if I did, I'd run it overnight.
- cdbattags 10y agoAw maaaan. No homebrew yet?