From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#69108: false-positive warning "variable =?UTF-8?Q?=E2=80=98=5F=E2=80=99?= not left unused" in if-let* and if-let Date: Sat, 17 Feb 2024 11:45:30 +0000 Message-ID: <878r3jz545.fsf@localhost> References: <87il2ryi30.fsf@web.de> <87mss09bnc.fsf@web.de> <86eddbv7no.fsf@gnu.org> <78798be7b3bc7a7bb477d4ec952734b199588d00.camel@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5692"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Michael Heerdegen , Eli Zaretskii , 69108@debbugs.gnu.org To: Konstantin Kharlamov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 17 10:46:50 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rbHHV-0001CR-Hc for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Feb 2024 10:46:49 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rbHGU-00054b-A9; Sat, 17 Feb 2024 04:45:46 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rbHGR-00054D-K4 for bug-gnu-emacs@gnu.org; Sat, 17 Feb 2024 04:45:44 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rbHGR-00039d-AY for bug-gnu-emacs@gnu.org; Sat, 17 Feb 2024 04:45:43 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rbHGk-00089O-EK for bug-gnu-emacs@gnu.org; Sat, 17 Feb 2024 04:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Feb 2024 09:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69108 X-GNU-PR-Package: emacs Original-Received: via spool by 69108-submit@debbugs.gnu.org id=B69108.170816315931322 (code B ref 69108); Sat, 17 Feb 2024 09:46:02 +0000 Original-Received: (at 69108) by debbugs.gnu.org; 17 Feb 2024 09:45:59 +0000 Original-Received: from localhost ([127.0.0.1]:60479 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rbHGS-00088o-Ln for submit@debbugs.gnu.org; Sat, 17 Feb 2024 04:45:59 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:33409) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rbHGQ-00088a-BN for 69108@debbugs.gnu.org; Sat, 17 Feb 2024 04:45:43 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 2624D240104 for <69108@debbugs.gnu.org>; Sat, 17 Feb 2024 10:45:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1708163116; bh=DPpPDW4oPVqpN24nIMjsfKn8NUkSw0Sqv8W7AEsM0BM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=Y+IJXpOkDSHxBC3xhfGvcRVCCuSB2w9esttFhAVTd9VKkLl109LL2Qc4j+GZfaoEl Tn6rYv7ZMV2cs+4AJ6xxwordaLFbsjCtPd/Cx5R5KkthsOMHekYELJ3CGsfO6EGzaC 1nb332tK70Mq0lPu2q89GZFXyC9QjbeOh24QCW0tK8O3pht+Bbks6gl7KE8JJXpiOn xrjR0WZU1KLpDEM7EpnFJaeUIEQ+Jxk7BvldRWOqh0Kb+IhgluFUODfyLkrOmkmo00 hFEB+C4TkWDx01UunD7MGuZ7dBuZXkgWtSOsPJtKRucD6965kpriHLTPQN86lAsJWz +7Dzo1JHRckGQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TcP6f5L7tz6tm8; Sat, 17 Feb 2024 10:45:14 +0100 (CET) In-Reply-To: <78798be7b3bc7a7bb477d4ec952734b199588d00.camel@yandex.ru> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:280123 Archived-At: Konstantin Kharlamov writes: > Just a side note, from my experience pcase is very slow=C2=B9, so if a > function supposed to be called often, I presume it's better to avoid > `pcase`. Although, Idk how it compares to `cond`. But judging from the > fact `cond` is implemented in C, it is likely faster. > > 1: > https://github.com/ankurdave/color-identifiers-mode/commit/bc566bcdbd79f2= 30b35eafd2b6c4f8428402ec09 I very much doubt the assertion of that commit. AFAIK, pcase expands to a similar consp check. If may be slow only when you macro-expand it during run time, not byte-compiling the code during benchmark. I recommend `benchmark-run-compiled' for testing. Or even to use native-compilation. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at