Re: Slow history load with some values of HISTSIZE

2024-02-10 Thread Casey Johnson
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

Re: Slow history load with some values of HISTSIZE

2024-02-09 Thread alex xmb sw ratchev
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

Re: Slow history load with some values of HISTSIZE

2024-02-09 Thread Chet Ramey
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

Re: Slow history load with some values of HISTSIZE

2024-02-05 Thread Casey Johnson
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...@

Re: Slow history load with some values of HISTSIZE

2024-02-05 Thread alex xmb sw ratchev
:* 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

Re: Slow history load with some values of HISTSIZE

2024-02-05 Thread alex xmb sw ratchev
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

Re: Slow history load with some values of HISTSIZE

2024-02-05 Thread Dale R. Worley
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

Slow history load with some values of HISTSIZE

2024-02-03 Thread Casey Johnson
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