[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
grep branch, master, updated. v3.7-8-g33b2d2e
From: |
Jim Meyering |
Subject: |
grep branch, master, updated. v3.7-8-g33b2d2e |
Date: |
Sun, 22 Aug 2021 03:40:14 -0400 (EDT) |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grep".
The branch, master has been updated
via 33b2d2eded9c9679853631ec94825247aae711ac (commit)
from ad6de316cca655cd8b0b20b3e9dd18e7e98e443a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=33b2d2eded9c9679853631ec94825247aae711ac
commit 33b2d2eded9c9679853631ec94825247aae711ac
Author: Jim Meyering <meyering@fb.com>
Date: Sun Aug 22 09:39:47 2021 +0200
tests: mb-non-UTF8-perf-Fw: use head rather than sed
* tests/mb-non-UTF8-perf-Fw: Use head -n 10000000 rather than the
work-alike sed command. This provides a 4x speedup and saves 0.5s.
* tests/null-byte: Likewise.
diff --git a/tests/mb-non-UTF8-perf-Fw b/tests/mb-non-UTF8-perf-Fw
index 44f3509..cdf7e22 100755
--- a/tests/mb-non-UTF8-perf-Fw
+++ b/tests/mb-non-UTF8-perf-Fw
@@ -23,7 +23,7 @@ fail=0
require_timeout_
require_JP_EUC_locale_
-yes 00 | sed 10000000q > in || framework_failure_
+yes 00 | head -n 10000000 > in || framework_failure_
# Since we're using an absolute timeout below and want to avoid any initial
# disk read performance penalty, run first with a large timeout and no error
diff --git a/tests/null-byte b/tests/null-byte
index 9402c2b..d86c249 100755
--- a/tests/null-byte
+++ b/tests/null-byte
@@ -51,7 +51,7 @@ for left in '' a '#' '\0'; do
done
done
-(echo xxx && yes yyy | sed 100000q && printf 'z\n\0') >in || framework_failure_
+(echo xxx && yes yyy | head -n 100000 && printf 'z\n\0') >in ||
framework_failure_
echo xxx >exp || framework_failure_
grep xxx in >out || fail=1
compare exp out || fail=1
-----------------------------------------------------------------------
Summary of changes:
tests/mb-non-UTF8-perf-Fw | 2 +-
tests/null-byte | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive
--
grep
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- grep branch, master, updated. v3.7-8-g33b2d2e,
Jim Meyering <=