know that the use-case I have in
mind is likely better served by sed and not by grep.
-Original Message-
From: Paul Eggert
Sent: Thursday, October 10, 2024 12:11 AM
To: Yagnatinsky, Mark : IT (NYK)
Cc: 73721-d...@debbugs.gnu.org
Subject: Re: bug#73721: grep perf docs barely mention mem
On 2024-10-09 14:12, mark.yagnatin...@barclays.com wrote:
With mmap(), the kernel just needs to set up a bit of book-keeping
Yes, I'm sure than in some cases mmap would be a win. However, all in
all it was found not to be, and I expect that the hassle of maintaining
the mmap variant wasn't wo
ing so fast!
-Original Message-
From: Paul Eggert
Sent: Wednesday, October 9, 2024 3:03 PM
To: Yagnatinsky, Mark : IT (NYK)
Cc: 73721-d...@debbugs.gnu.org
Subject: Re: bug#73721: grep perf docs barely mention mem usage
CAUTION: This email originated from outside our organization -
On 2024-10-09 10:01, mark.yagnatinsky--- via Bug reports for GNU grep wrote:
After a bit of research, it seems that once upon a time, grep used mmap where
possible, but it no longer does this.
Thus, peak memory usage will be proportional to the length of the longest line
in the file.
Thus, if u
This page: https://www.gnu.org/software/grep/manual/html_node/Performance.html
discusses how to get good performance out of grep.
That is nice, but the perf advice focuses almost entirely on speed.
I'm more interested in how to avoid excessive memory usage.
After a bit of research, it seems that on