Only looking for at least one occurrence of "{LAY", so no need to keep searching after finding it. This can be expensive for large layout files, especially with many processes accessing the same volume. grep -c counts matching lines.
Avoid long grep of layout files in generated runPartitions.sh scripts
Thanks, nice optimization. Probably would have been better to send to the mailing list. I'm not sure if anyone noticed this until now.
Log in to post a comment.
Avoid long grep of layout files in generated runPartitions.sh scripts
Thanks, nice optimization. Probably would have been better to send to the mailing list. I'm not sure if anyone noticed this until now.