Thanks! I'm happy to help.
From: alex xmb sw ratchev
Sent: Friday, February 9, 2024 9:13 PM
To: Chester Ramey
Cc: Casey Johnson ; bug-bash
Subject: Re: Slow history load with some values of HISTSIZE
On Sat, Feb 10, 2024, 03:06 Chet Ramey
mailto:ch
On Sat, Feb 10, 2024, 03:06 Chet Ramey wrote:
> On 2/3/24 3:29 PM, Casey Johnson wrote:
>
> > Bash Version: 5.1
> > Patch Level: 16
> > Release Status: release
> >
> > Description:
> >
> > The current implementation of the command history takes a long time to
> load
> > a large HISTFILE when hist
On 2/3/24 3:29 PM, Casey Johnson wrote:
Bash Version: 5.1
Patch Level: 16
Release Status: release
Description:
The current implementation of the command history takes a long time to
load
a large HISTFILE when history is stifled. This is because there is a
memmove() for ever
ening.
From: alex xmb sw ratchev
Sent: Monday, February 5, 2024 7:29 PM
To: Dale R. Worley
Cc: Casey Johnson ; bug-bash
Subject: Re: Slow history load with some values of HISTSIZE
On Mon, Feb 5, 2024, 18:09 Dale R. Worley
mailto:wor...@alum.mit.edu>> wrote:
Casey Johnson mailto:stry...@
:* Monday, February 5, 2024 7:29 PM
> *To:* Dale R. Worley
> *Cc:* Casey Johnson ; bug-bash
> *Subject:* Re: Slow history load with some values of HISTSIZE
>
>
>
> On Mon, Feb 5, 2024, 18:09 Dale R. Worley wrote:
>
> Casey Johnson writes:
> > In a clean shell
On Mon, Feb 5, 2024, 18:09 Dale R. Worley wrote:
> Casey Johnson writes:
> > In a clean shell, execute:
> > HISTFILE=alt-history.txt
> > HISTSIZE=15
> > history -r
> > and then observe how long the last command runs before returning.
>
> Though I e
Casey Johnson writes:
> In a clean shell, execute:
> HISTFILE=alt-history.txt
> HISTSIZE=15
> history -r
> and then observe how long the last command runs before returning.
Though I expect that when you exit bash, the history file gets trimmed
to 15
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -g -O2 -flto=auto -ffat-lto-objects -flto=auto
-ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security
-Wall
uname output: Linux maxwell 5.19.0-5