Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Slower zsh prompt in weird circumstances
- X-seq: zsh-users 29180
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Slower zsh prompt in weird circumstances
- Date: Tue, 22 Aug 2023 14:26:00 +0100 (BST)
- Archived-at: <https://zsh.org/users/29180>
- Importance: Normal
- In-reply-to: <CUY8GBSP1NF1.3M0I20HLD7JRK@fw>
- List-id: <zsh-users.zsh.org>
- References: <CUACHC1PLRXV.G2W45UQ3ZB0P@fw> <CUY8GBSP1NF1.3M0I20HLD7JRK@fw>
On 21/08/2023 13:48 Nojus Gudinavičius <nojus.gudinavicius@xxxxxxxxx> wrote:
> I think I found the problem - large enough history file.
>
> Turns out, after every executed command zle goes through full history
> erasing line edits. Most of the time this is not necessary.
>
> I made a hacky patch that at least skips the erasing if no edits were
> made.
That looks a perfectly reasonable optimisation as far as it goes. I'll
commit it with the variable type changed to int --- we happen not to
use char's even for flags, not for any particularly good reason, I don't
think.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author