make lcr faster

This commit is contained in:
Schrottkatze 2024-04-20 16:09:09 +02:00
parent 20daa94697
commit 4a97a34afc
Signed by: schrottkatze
SSH key fingerprint: SHA256:hXb3t1vINBFCiDCmhRABHX5ocdbLiKyCdKI4HK2Rbbc

View file

@ -798,7 +798,7 @@ def lcr [
] { ] {
ls **/* ls **/*
| where name ends-with $".($file_extension)" | where name ends-with $".($file_extension)"
| each {|file| | par-each {|file|
open $file.name open $file.name
| lines --skip-empty | lines --skip-empty
| length } | length }