From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail
From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= <mattiase@acm.org>
Newsgroups: gmane.emacs.bugs
Subject: bug#36139: [PATCH] Make better use of the switch op in cond forms
Date: Wed, 19 Jun 2019 11:30:00 +0200
Message-ID: <3B9FC7ED-30CE-4714-8A4B-5986EDB67E71@acm.org>
References: <68467ACF-DA49-4EBA-BA3B-7339DB22A456@acm.org>
 <jwvk1di7m93.fsf-monnier+emacs@gnu.org>
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
Content-Type: text/plain;
	charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226";
	logging-data="176484"; mail-complaints-to="usenet@blaine.gmane.org"
Cc: 36139@debbugs.gnu.org
To: Stefan Monnier <monnier@iro.umontreal.ca>
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 19 11:37:19 2019
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>
Envelope-to: geb-bug-gnu-emacs@m.gmane.org
Original-Received: from lists.gnu.org ([209.51.188.17])
	by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.89)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>)
	id 1hdX1r-000jnW-7W
	for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Jun 2019 11:37:19 +0200
Original-Received: from localhost ([::1]:36216 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.86_2)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>)
	id 1hdX1o-00031F-34
	for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Jun 2019 05:37:16 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37792)
 by lists.gnu.org with esmtp (Exim 4.86_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1hdWvy-0005ck-H7
 for bug-gnu-emacs@gnu.org; Wed, 19 Jun 2019 05:31:16 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1hdWvv-00015c-Mg
 for bug-gnu-emacs@gnu.org; Wed, 19 Jun 2019 05:31:12 -0400
Original-Received: from debbugs.gnu.org ([209.51.188.43]:60720)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1hdWvm-0000wo-Mk
 for bug-gnu-emacs@gnu.org; Wed, 19 Jun 2019 05:31:05 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1hdWvm-0003Rg-Ic
 for bug-gnu-emacs@gnu.org; Wed, 19 Jun 2019 05:31:02 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= <mattiase@acm.org>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Wed, 19 Jun 2019 09:31:02 +0000
Resent-Message-ID: <handler.36139.B36139.156093661213162@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 36139
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: patch
Original-Received: via spool by 36139-submit@debbugs.gnu.org id=B36139.156093661213162
 (code B ref 36139); Wed, 19 Jun 2019 09:31:02 +0000
Original-Received: (at 36139) by debbugs.gnu.org; 19 Jun 2019 09:30:12 +0000
Original-Received: from localhost ([127.0.0.1]:46028 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1hdWuy-0003QE-2n
 for submit@debbugs.gnu.org; Wed, 19 Jun 2019 05:30:12 -0400
Original-Received: from mail1422c50.megamailservers.eu ([91.136.14.22]:37946
 helo=mail102c50.megamailservers.eu)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mattiase@acm.org>) id 1hdWuu-0003P3-Sy
 for 36139@debbugs.gnu.org; Wed, 19 Jun 2019 05:30:10 -0400
X-Authenticated-User: mattiase@bredband.net
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu;
 s=maildub; t=1560936602;
 bh=AWJJEynfW8D6aru+puor5Ckgyf7Ev4tMZK5t8AWgPt8=;
 h=Subject:From:In-Reply-To:Date:Cc:References:To:From;
 b=Qr2AF+qx4CxX9eXjsorP0Pf9K5HSZ4prN/8eghcHhb8px1wHWCkAwPcziXyDU+7Sq
 vPMaNeMSEWHPir2KWKvQvB5PY80JlFlJRSPJfX3K3vpnc97zd//blhA+P6oDk+3VYq
 K7lXJVBCATIs+Y/jqLCeHovfPEGbcAPptYDqLqZs=
Feedback-ID: mattiase@acm.or
Original-Received: from [192.168.1.65] (c-e636e253.032-75-73746f71.bbcust.telenor.se
 [83.226.54.230]) (authenticated bits=0)
 by mail102c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id x5J9U0gp007584; 
 Wed, 19 Jun 2019 09:30:02 +0000
In-Reply-To: <jwvk1di7m93.fsf-monnier+emacs@gnu.org>
X-Mailer: Apple Mail (2.3445.104.11)
X-CTCH-RefID: str=0001.0A0B0206.5D0A009A.0060, ss=1, re=0.000, recu=0.000,
 reip=0.000, cl=1, cld=1, fgs=0
X-CTCH-VOD: Unknown
X-CTCH-Spam: Unknown
X-CTCH-Score: 0.000
X-CTCH-Flags: 0
X-CTCH-ScoreCust: 0.000
X-CSC: 0
X-CHA: v=2.3 cv=F7x5iJpN c=1 sm=1 tr=0 a=M+GU/qJco4WXjv8D6jB2IA==:117
 a=M+GU/qJco4WXjv8D6jB2IA==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19
 a=kj9zAlcOel0A:10 a=iRZporoAAAAA:8 a=z1zzveY_27sos4A43sgA:9
 a=CjuIK1q_8ugA:10 a=NOBgFS-JBQ2l-kSd6-zu:22
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 209.51.188.43
X-BeenThere: bug-gnu-emacs@gnu.org
List-Id: "Bug reports for GNU Emacs,
 the Swiss army knife of text editors" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-gnu-emacs>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org
Original-Sender: "bug-gnu-emacs"
 <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>
Xref: news.gmane.org gmane.emacs.bugs:160835
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/160835>

18 juni 2019 kl. 21.03 skrev Stefan Monnier <monnier@iro.umontreal.ca>:
>=20
> LGTM.  The other direction is to just always use `member`
> and speed up the implementation of `member` by testing the type of
> the first arg and dispatch to memq/memql when possible.

Thank you. I ended up pushing this patch on the grounds that it took =
care of unfinished business in pcase (it did try to select which =
function to use, just didn't go all the way). Speeding up `member' is, =
of course, useful on its own.