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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31792 invoked from network); 27 Apr 2022 10:28:58 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 27 Apr 2022 10:28:58 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1651055338; b=fMoFoYtKd0wJZMt39Xrk7ZMzW/0lg2Ezf7nF+YLnYFnLspTp5kUN9dTP3do2xqidvOgSdRXSWB WTozN8QpuaUrujV8ahkX3OoA5KG9aKy8BMmLFiv4HKIOxvid2SKN6Tkw7wRn1Mn95/U66AtW6d Xdo815kBA9PLZNVcjo9uSvYdkmB4rFpEe2RVKC3koF0UiFMJfeJ1vLHJ2Uy99WbXrOkFPcYUUb xqwHF4aNJxY6T2uhB2MTgj/ie/WTsyld8Er7mmoq9oa4YmsLBFMTW2bs4CuzKY2F4u1QuaThjQ bLUlFh2mzX8jzMD/CvOUotr1Y2U/a1+3A4n+/SjoJQAlBg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (snd00006-bg.im.kddi.ne.jp) smtp.remote-ip=27.86.113.6; dmarc=none header.from=kba.biglobe.ne.jp; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1651055338; bh=B80bepHRKD1KyFneGOAb9hllilMTK+sSCvvIUjtfD10=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:To:References:Message-ID:Content-Transfer-Encoding:Date: In-Reply-To:From:Subject:MIME-Version:Content-Type:DKIM-Signature; b=kX+g7Pm2kRnUOBns2yordMzmRe+Yzpf+19642g6YbPc1mZTZpuFQa7olzDjz0TN3f2x8k+VNiJ SfsPzx52+2bjnVU/6XlEggzardGPkhNIVT1GQKoxkRLDbMpBe97wu8mQmei5jeoM1LRVJ0ucSs IPBUXNzhY6d8B+9GsJXyOEvFJBPMrqHQkPtFCPl8fJzbE1zrk4OmNsdkiIppOG1Pt6fFC5J2ls rg1+2+JS1/7vtDWy5oAok2b7jwrNA1ALDqLStfihTgiaf1VRe3OsuXFDtzhnaGAlyVo8XrvUvY D12RKhKV2Fa2aOLaJtZzrr0xHbis+YWGwrn8uAmOylYHEQ==; 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:To:References:Message-Id: Content-Transfer-Encoding:Date:In-Reply-To:From:Subject:Mime-Version: Content-Type:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=4T4oml2IP306+RwVAATTkKZcc41rQFqyojnDjp4F4RI=; b=l4PQfey8yqqVw1QyUCdPIYRQJy HnJlvx2L6Mu/4cS4vZLMTdaDkdCYu+zquEZVYHUO7Up8KAzGDiq5nP7UsmP876MPu/PMxLyttNNZO bTDIzyelAmN8X5WCxoIAIiCRyWj3EfxqkA+HnVAlBDxLsY7kKxnJrz7A9MqxoUe0ZuUcS1f4azwa1 uRwA0oEEqVH/QgmS95LrtJvsv1NWtJYekKuEq/qEnQc0pUKUtN1nnczk2w0tQ9/oiQoicQ/F3qLjX NEC5MJsYmkuKUSzrofhS/1eEQPrnavl9Cqcwb2Lh2JzoXkLoHcQfQLw5FtGRn852g60oAPjoGScSC /nEwPIkA==; Received: from authenticated user by zero.zsh.org with local id 1njeun-0008em-KA; Wed, 27 Apr 2022 10:28:57 +0000 Authentication-Results: zsh.org; iprev=pass (snd00006-bg.im.kddi.ne.jp) smtp.remote-ip=27.86.113.6; dmarc=none header.from=kba.biglobe.ne.jp; arc=none Received: from snd00006-bg.im.kddi.ne.jp ([27.86.113.6]:28065 helo=dfmta0004.biglobe.ne.jp) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1njeuG-0008Jo-1x; Wed, 27 Apr 2022 10:28:25 +0000 Received: from mail.biglobe.ne.jp by omta0004.biglobe.ne.jp with ESMTP id <20220427102818729.XFXJ.90319.mail.biglobe.ne.jp@biglobe.ne.jp> for ; Wed, 27 Apr 2022 19:28:18 +0900 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\)) Subject: Re: ZSH performance regression in 5.8.1.2-test From: Jun T X-Priority: 3 In-Reply-To: <632293647.60210.1651052061990@mail2.virginmedia.com> Date: Wed, 27 Apr 2022 19:28:18 +0900 Content-Transfer-Encoding: 7bit Message-Id: <6AEDDA47-F8ED-4160-8FFF-8D3C70B12490@kba.biglobe.ne.jp> References: <20220425192036.p6awbyro2a2lp7bq@chazelas.org> <7E5CB0D9-4740-486A-B55E-6EA0530532F9@kba.biglobe.ne.jp> <632293647.60210.1651052061990@mail2.virginmedia.com> To: zsh-workers@zsh.org X-Mailer: Apple Mail (2.3445.104.21) X-Biglobe-Sender: takimoto-j@kba.biglobe.ne.jp X-Seq: 50114 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: > 2022/04/27 18:34, Peter Stephenson wrote: > >> On 27 April 2022 at 01:38 Bart Schaefer wrote: >> >> I was pretty sure I'd found a case (on Ubuntu 20.04) where it >> succeeded on a pipe when there was already data written to the pipe >> before the seek was attempted. That was only/exactly for (0, >> SEEK_CUR). > > A simple test for this still caused the seek on the type to fail > here, but I could be missing the key elements. Should still > be a safe test with only a few bytes in the pipe, I would think. OK, I will add this to configure.ac. > 2022/04/26 23:31, I wrote: > > But at least on my Mac the following seems to work also: > > if (lseek(SHIN, 0, SEEK_CUR) == 0) Sorry, it should have been: if (lseek(SHIN, 0, SEEK_CUR) != (off_t)_1) I will modify Bart's patch and post it with the patch for configure.ac.