From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 19982 invoked from network); 22 Aug 2023 13:27:00 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 22 Aug 2023 13:27:00 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1692710820; b=R6nB5RFsMAcDLV6gjSK6Dav3hyOPxpaHDxqZidy3lG1RHmlES6lxij0PsS3Zz08pBDUJQJFhNc HJkTFR8wkkRn45hNxo1nmYteEK/F9fJz76VgxaiIz4qQGf7O17E1wcrsY4L5haUqXB9y7/rJ/V qYNstqRPGzyVe9smOUkC/8zM/zOdOvPm4jR5x+lHY8JsSwqKHdzFE0c3BaMf0AtECGVgkMVLyk 4lFjaz3knbUEw/u6DCHDxdweWAAGQQw/+NHJtbvu1PnRyEKC87k/NvVFNGx4ARsBgRXQg0FtAO D/bggLpX/wD9DFQLLBYGxprldsx6xOhW003RVBQqSf9kTw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (csmtpq2-prd-nl1-vmo.edge.unified.services) smtp.remote-ip=84.116.50.37; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1692710820; bh=oIG/uNfW1OUKwu1CS8X76SH91FWSWzEumHvQerLaipI=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject: References:In-Reply-To:Message-ID:To:From:Date:DKIM-Signature: DKIM-Signature; b=lqfwiZZjbFGrxGUohh5RBuB8t/t6x0Ad7vwfnlt2yZkzGcQGAAOU3JoRAHY9LBmWzbhHA0k/+N Wt0JJIsh+NYlwmwWTa9/+T/FtdBpeU58AdgNn1WAQhvx/EWKT3xD+s4AWoKNAb8wcSF+7X9+ai WuEpD4hSwhhrxVNFF7eIVJH8MLPsn3VLlOYUTGd/VXzDmf9E+Ltwn6DSpuU2rXDAy6ftr0bkK3 FCLFVRMEKp7M+aIajm9tfkDN/DCTSkzdUAA9vyqhK5Gb40pWQbHoEnUZ1LQWOPK2gLu2BAKc2Y OMKDjGYMjb47eGQzM8WZuV2RQahPu22TP/HO5MxRwTfIrw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Subject:References:In-Reply-To:Message-ID:To:From: Date:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=Icdjg2lf/xdg253Ey/We+X83/GXDRi1HPkcXlWMhVpU=; b=Q0QSMbGJqz1U6r7YvPB00Nl7Cz HrL1uiZdYvDKmT77LKpXDXvOZk3g/+W/tR/Xmzb3DUm1TR9rM/wjmV79rEW6OTDosf0BJ8tF+ytBv 7lXpBONg5Lc8I6mGM62Hx8/VmkYEY9vBwRE/c+I1wne/ucHznyKfePb1FEvSJ74Rk1M44rof3m1TC KyCHPp477y/ELZAWF2KoeRyyHm5QYeGeJQxuOXReJ+K8QAZHlxqMJ0RHRW5LfZjI3YMq5pgnHA4g4 qoo2y+/DDaevgpDgOzBrbnd6BUgU20zDgWAAZEfK6nzJT4+CjRVHhkFPMcczpljF4YVc9DJilEWiG IdD9JHPQ==; Received: by zero.zsh.org with local id 1qYRPQ-0004FJ-FB; Tue, 22 Aug 2023 13:27:00 +0000 Authentication-Results: zsh.org; iprev=pass (csmtpq2-prd-nl1-vmo.edge.unified.services) smtp.remote-ip=84.116.50.37; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none Received: from csmtpq2-prd-nl1-vmo.edge.unified.services ([84.116.50.37]:6809) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1qYROS-0003Ry-R0; Tue, 22 Aug 2023 13:26:03 +0000 Received: from oxsmtp1-prd-nl1-vmo.nl1.unified.services ([100.107.83.138]) by csmtpq2-prd-nl1-vmo.edge.unified.services with esmtp (Exim 4.93) (envelope-from ) id 1qYROS-00BlEi-4N for zsh-users@zsh.org; Tue, 22 Aug 2023 15:26:00 +0200 Received: from oxbe4-prd-nl1-vmo.nl1.unified.services ([100.107.83.37]) by oxsmtp1-prd-nl1-vmo.nl1.unified.services with ESMTP id YROSqJSsCe0icYROSqEXAG; Tue, 22 Aug 2023 15:26:00 +0200 X-Env-Mailfrom: p.w.stephenson@ntlworld.com X-Env-Rcptto: zsh-users@zsh.org X-SourceIP: 100.107.83.37 X-CNFS-Analysis: v=2.4 cv=Ft7DvUnq c=1 sm=1 tr=0 ts=64e4b768 cx=a_exe a=GnyNddD8AJUtD8f3H9Es2Q==:117 a=IvlwODmuRu4A:10 a=IkcTkHD0fZMA:10 a=pGLkceISAAAA:8 a=sqCAfwWBuUhj5w7pbdEA:9 a=QEXdDO2ut3YA:10 a=HbQOABYz3jhqdZF7JfnK:22 X-Authenticated-Sender: p.w.stephenson@ntlworld.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntlworld.com; s=meg.feb2017; t=1692710760; bh=oIG/uNfW1OUKwu1CS8X76SH91FWSWzEumHvQerLaipI=; h=Date:From:To:In-Reply-To:References:Subject; b=dZQRNx93wcIo3WjUAvi2aNyNcuYhhuk8D/Z84ssuMu1BbUWx64M8tTDja9xiHNEmX Nt49NyiaMPbOT1w2CjU4h7dXHW8i/1W3JaXqFtEp9W95f3c6o78UEoUZ4UURzP/Xud l+CvBs45OyDsdLL3V6ocMv6/ocY/FLxsO5ekYT1DupMODDEygM5VItpzev6EvL2nL1 bpJPUB7xeRlWCBmqG1I6R2r7EzK5nFlUJMpz3hmaImVDXz4J51QLFx5R/hJlDZAiVa 1cDfYME6WR6rSRNLkD9B7YIqgKeto0T7J6xty9R4XiUDnWHKYi1OMnwxz1hcu8wWtV Yb2aBf73DaaWA== Date: Tue, 22 Aug 2023 14:26:00 +0100 (BST) From: Peter Stephenson To: zsh-users@zsh.org Message-ID: <1688933277.2697994.1692710760062@mail.virginmedia.com> In-Reply-To: References: Subject: Re: Slower zsh prompt in weird circumstances MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer X-Originating-IP: 147.161.224.196 X-Originating-Client: open-xchange-appsuite X-CMAE-Envelope: MS4xfGHrX00wKa3sNfILqTuFm5LI+MfL5wR8AqHdJ2WCZM05AzCSzCl4XmVXEsOiN6An9KY0NmeFl5LFk9BVfdZ8pRv9leY2msMycfpmAdNYWLMLROKHjZzm Ld39wMniisyCLe6PRUKfEnz4PodSps1YeTa4k4wMZSH2BIhmtlbhxho+Rfpwfa2/1O+8jvm/5Cw8OhQSW3LYVaUV770/5xkKOLFowI66sy4eLC2DM9s9nTKH X-Seq: 29180 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On 21/08/2023 13:48 Nojus Gudinavi=C4=8Dius = wrote: > I think I found the problem - large enough history file. >=20 > Turns out, after every executed command zle goes through full history > erasing line edits. Most of the time this is not necessary. >=20 > 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