|
| From: | Pádraig Brady |
| Subject: | Re: [PATCH 1/4] cut: -c: optimize extracting the start of a line |
| Date: | Tue, 29 Sep 2026 13:41:28 +0100 |
| User-agent: | Mozilla Thunderbird Beta |
On 29/09/2026 06:33, Collin Funk wrote:
Pádraig Brady <P@draigBrady.com> writes:* src/cut.c (cut_characters_mode): Shortcut the line delimiter search if finished processing characters. * tests/cut/cut.pl: Add a test case. --- src/cut.c | 11 +++++++++++ tests/cut/cut.pl | 4 ++++ 2 files changed, 15 insertions(+)Those patches look good to me. I assume you are going to add a NEWS entry before committing?
OK I did that. Attached is the test harness I was using for cut performance work. BTW I was focusing on cut performance before other multi-byte work, as I felt it was a good place to consolidate techniques and abstractions before proceeding with multi-byte work elsewhere. cheers, Padraig
cut-test.sh
Description: application/shellscript
| [Prev in Thread] | Current Thread | [Next in Thread] |