From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: What's missing in ELisp that makes people want to use cl-lib? Date: Sun, 12 Nov 2023 02:36:54 +0000 Message-ID: References: <87bkc4jpja.fsf@dataswamp.org> <12da6bcb-1818-7fbe-12af-8d4607724332@gutov.dev> <87il6bt4z0.fsf@yahoo.com> <8734xetjkk.fsf@yahoo.com> <87cywhsrcf.fsf@yahoo.com> <87cywgx1z0.fsf@web.de> <83wmuowwp3.fsf@gnu.org> <8334xcwank.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="000000000000ebeca60609eb6243" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13829"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?UTF-8?Q?Gerd_M=C3=B6llmann?= , Eli Zaretskii , michael_heerdegen@web.de, emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 12 03:34:58 2023 Return-path: Envelope-to: ged-emacs-devel@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 1r20JN-0003Jx-PT for ged-emacs-devel@m.gmane-mx.org; Sun, 12 Nov 2023 03:34:57 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r20Id-0005M9-4k; Sat, 11 Nov 2023 21:34:11 -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 1r20Ia-0005Lb-W8 for emacs-devel@gnu.org; Sat, 11 Nov 2023 21:34:09 -0500 Original-Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r20IY-0000JS-TM; Sat, 11 Nov 2023 21:34:08 -0500 Original-Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2c7c7544c78so31847511fa.2; Sat, 11 Nov 2023 18:34:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699756443; x=1700361243; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=J5fwtYUupaX2YJdy4ZvHaATQDnPrGcwPbtgDN6RxX7o=; b=W/5mcXwOsNqZkq2gDU+9yJz+QdMU/tr7p6yw55zi0MBRLPSNIAljqV80/9asTyLS/Q 9l+U9M1JHAarvDTDOWHUEkOLBhVrAdjFzTYWGypLD920EmvUwR3RHtds7uaU2ClFTekH tlUwaNnb8RJ9jgMHSWnOO5nU3t1TMJrmT+pjq1h1fbYTQErpmvdkoeedLc+AHYYwYg4S 0HoU4P4lkl603Q6ZjlbMEuXxKurxFuKQ0DeAcIYZfaGFi9E1nzyTG1a9yyRI5qWLDDl1 yKqK5O6+cfEC6YFCRg2B2sGRs4aKPHioiMslMHVpM7To1N9h/s1CsWTsW3KwzDiH8VgD +ebQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699756443; x=1700361243; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=J5fwtYUupaX2YJdy4ZvHaATQDnPrGcwPbtgDN6RxX7o=; b=WO/2ktK7TKgPNvy4p9ta7ucX50WdkCq7G+mME8zTtmf0CO2+0Drv1RS3WPKICnxIJ7 t68kx5rJKVqKJRsCwuxn9plEao3LP38ce8rFtTAkVq6j+H6L9hsF1Xmvt0Zmox/+P+xm ynALqy2KjqllG9TY6LpEyhV79VC47Yv2d7xPGhLZeot13nvKX+/vVkGVMs0rRt+TTpT7 5WxK+aDCJdL3m3QcLKZOpR4WONgL0/CbYy3XkbD0vmTMRus38rgqLr29EajOcojH6VDN 2Tubms9RwCb0+HnWgEsHVot5oRoNcYEj1DDQeN7hOJZ9PbKL01H842bqO7bpchXV4c+T s/7A== X-Gm-Message-State: AOJu0YxH2zts4LIRYfexpIrJfZIcihCxSqZKzybDnutG4krhui/3g4B9 bXyknlQ3x0Gl1vHeG630eQIrE0fbHt5kgCxobvg= X-Google-Smtp-Source: AGHT+IEQQ+9iKd9g7HIJ0EGcSMY2OZh86g2tGRVkcxOlV4ypu7eUjx8mFSPNEJW55cUmrHqtlJ6VE5a2fOuJjNLh8B4= X-Received: by 2002:a05:6512:1087:b0:507:b7db:1deb with SMTP id j7-20020a056512108700b00507b7db1debmr2683033lfg.38.1699756441848; Sat, 11 Nov 2023 18:34:01 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::22a; envelope-from=joaotavora@gmail.com; helo=mail-lj1-x22a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:312626 Archived-At: --000000000000ebeca60609eb6243 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Nov 11, 2023 at 9:49=E2=80=AFPM Dmitry Gutov wro= te: > > On 11/11/2023 20:07, Gerd M=C3=B6llmann wrote: > > Seq is 10 years in Emacs, its polymorphism is unused in the tree. Joao > > showed that it's slow. Dmitry mentioned that it is not a full > > replacement for what is in cl-lib. > > FWIW, it doesn't seem to me that seq's dynamic dispatch is the main part > of what makes it "slow" in a number of cases. Indeed I don't know if dynamic dispatch is the main culprit, but my measurements show that calling cl-some lots of times on small lists specifically yields much worse performance than cl-some. In larger lists, the difference is attenuated. So that's why I conjectured that dynamic dispatch played a role, but I didn't check. Now that you mention set difference, I find this: (when nil (let ((l2 '(4 5 6 7))) (benchmark-run 100000 (let ((l (list 1 2 3 4 8 9 10 11 12 13 14))) (cl-set-difference l l2))))(0.5964884789999999 20 0.389268709999999= 96) (let ((l2 '(4 5 6 7))) (benchmark-run 100000 (let ((l (list 1 2 3 4 8 9 10 11 12 13 14))) (cl-nset-difference l l2))))(0.594109028 20 0.37972229299999993) (let ((l2 '(4 5 6 7))) (benchmark-run 100000 (let ((l (list 1 2 3 4 8 9 10 11 12 13 14))) (seq-difference l l2))))(3.087290361 102 2.020063915) Eli thinks this doesn't really show seq.el is slower than cl-lib.el and that may be half-true: it just shows how it is slower in this micro-benchmark. But you seem to have a real-world measurable case, which is of course better, so I'm curious. > cl-lib is not that well-optimized either. That's certainly true. I've been looking at the code and there are some serious optimization opportunities in cl-lib.el. The one you found right away, destructive versions delegating to overconsing non-destructive ones, but also other opportunities. I attach a patch that I hope you can try with that bug report. Very lightly tested here, but seems to show a measurable improvement. (when nil (let ((l2 '(4 5 6 7))) (benchmark-run 100000 (let ((l (list 1 2 3 4 8 9 10 11 12 13 14))) (cl-set-difference l l2))));; (0.480944603 8 0.3380962310000015) (let ((l2 '(4 5 6 7))) (benchmark-run 100000 (let ((l (list 1 2 3 4 8 9 10 11 12 13 14))) (cl-nset-difference l l2))));; (0.31953939800000003 5 0.21426147399999707) (let ((l2 '(4 5 6 7))) (benchmark-run 100000 (let ((l (list 1 2 3 4 8 9 10 11 12 13 14))) (seq-difference l l2)))) ;; (2.3330953689999996 41 1.81757303900000= 27) ) Jo=C3=A3o --000000000000ebeca60609eb6243 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-WIP-optimize-cl-nset-difference.patch" Content-Disposition: attachment; filename="0001-WIP-optimize-cl-nset-difference.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_louuybf30 RnJvbSAyMDVjN2UxZDk5NzI2NDVjZGJkYzJkY2M4NWIwYTIzNWYzMzc1MDNlIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiA9P1VURi04P3E/Sm89QzM9QTNvPTIwVD1DMz1BMXZvcmE/PSA8 am9hb3Rhdm9yYUBnbWFpbC5jb20+CkRhdGU6IFN1biwgMTIgTm92IDIwMjMgMDA6NTI6MTggKzAw MDAKU3ViamVjdDogW1BBVENIXSBXSVA6IG9wdGltaXplIGNsLW5zZXQtZGlmZmVyZW5jZQoKLS0t CiBsaXNwL2VtYWNzLWxpc3AvYnl0ZWNvbXAuZWwgICAgICAgICAgfCAgMiArLQogbGlzcC9lbWFj cy1saXNwL2NsLXNlcS5lbCAgICAgICAgICAgIHwgNTggKysrKysrKysrKysrKysrKysrKysrKysr KystLQogdGVzdC9saXNwL2VtYWNzLWxpc3AvY2wtbGliLXRlc3RzLmVsIHwgNDUgKysrKysrKysr KysrKysrKysrKystCiAzIGZpbGVzIGNoYW5nZWQsIDEwMCBpbnNlcnRpb25zKCspLCA1IGRlbGV0 aW9ucygtKQoKZGlmZiAtLWdpdCBhL2xpc3AvZW1hY3MtbGlzcC9ieXRlY29tcC5lbCBiL2xpc3Av ZW1hY3MtbGlzcC9ieXRlY29tcC5lbAppbmRleCBjY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ucmV2ZXJzZSBjbC1yZXMpKSkp KQogCisoZGVmbWFjcm8gY2wtLWxpc3QtbWVtYmVyLXdpdGgta2V5cyAoZSBsIGtleSB0ZXN0IHRl c3Qtbm90KQorICAiQ2hlY2tzIGlmIEUgaXMgaW4gTCB3aXRoIHN0YW5kYXJkIENMIEtFWSwgVEVT VCBhbmQgVEVTVC1OT1QuCitBbmFwaG9yaWMgbWFjcm8hIHJlcXVpcmVzIGNsLXRlc3QsIGNsLXRl c3Qtbm90IGFuZCBjbC1rZXkgdG8gYmUgYm91bmQiCisgIGAobGV0ICgoZSAsZSkgKGwgLGwpIChr ZXkgLGtleSkgKHRlc3QgLHRlc3QpICh0ZXN0LW5vdCAsdGVzdC1ub3QpKQorICAgICAoY29uZCAo dGVzdC1ub3QKKyAgICAgICAgICAgIChjb25kIChrZXkKKyAgICAgICAgICAgICAgICAgICAoc2V0 cSBlIChmdW5jYWxsIGtleSBlKSkKKyAgICAgICAgICAgICAgICAgICAoY2F0Y2ggJ2RvbmUKKyAg ICAgICAgICAgICAgICAgICAgICh3aGlsZSBsCisgICAgICAgICAgICAgICAgICAgICAgICh1bmxl c3MgKGZ1bmNhbGwgdGVzdC1ub3QgZSAoZnVuY2FsbCBrZXkgKGNhciBsKSkpCisgICAgICAgICAg ICAgICAgICAgICAgICAgKHRocm93ICdkb25lIHQpKQorICAgICAgICAgICAgICAgICAgICAgICAo c2V0cSBsIChjZHIgbCkpKSkpCisgICAgICAgICAgICAgICAgICAodAorICAgICAgICAgICAgICAg ICAgIChjYXRjaCAnZG9uZQorICAgICAgICAgICAgICAgICAgICAgKHdoaWxlIGwKKyAgICAgICAg ICAgICAgICAgICAgICAgKHVubGVzcyAoZnVuY2FsbCB0ZXN0LW5vdCBlIChjYXIgbCkpCisgICAg ICAgICAgICAgICAgICAgICAgICAgKHRocm93ICdkb25lIHQpKQorICAgICAgICAgICAgICAgICAg ICAgICAoc2V0cSBsIChjZHIgbCkpKSkpKSkKKyAgICAgICAgICAgKHRlc3QKKyAgICAgICAgICAg IChjb25kIChrZXkKKyAgICAgICAgICAgICAgICAgICAoc2V0cSBlIChmdW5jYWxsIGtleSBlKSkK KyAgICAgICAgICAgICAgICAgICAoY2F0Y2ggJ2RvbmUKKyAgICAgICAgICAgICAgICAgICAgICh3 aGlsZSBsCisgICAgICAgICAgICAgICAgICAgICAgICh3aGVuIChmdW5jYWxsIHRlc3QgZSAoZnVu Y2FsbCBrZXkgKGNhciBsKSkpCisgICAgICAgICAgICAgICAgICAgICAgICAgKHRocm93ICdkb25l IHQpKQorICAgICAgICAgICAgICAgICAgICAgICAoc2V0cSBsIChjZHIgbCkpKSkpCisgICAgICAg ICAgICAgICAgICAodAorICAgICAgICAgICAgICAgICAgIChjYXRjaCAnZG9uZQorICAgICAgICAg ICAgICAgICAgICAgKHdoaWxlIGwKKyAgICAgICAgICAgICAgICAgICAgICAgKHdoZW4gKGZ1bmNh bGwgdGVzdCBlIChjYXIgbCkpCisgICAgICAgICAgICAgICAgICAgICAgICAgKHRocm93ICdkb25l IHQpKQorICAgICAgICAgICAgICAgICAgICAgICAoc2V0cSBsIChjZHIgbCkpKSkpKSkKKyAgICAg ICAgICAgKGtleQorICAgICAgICAgICAgKHNldHEgZSAoZnVuY2FsbCBrZXkgZSkpCisgICAgICAg ICAgICAoY2F0Y2ggJ2RvbmUKKyAgICAgICAgICAgICAgKHdoaWxlIGwKKyAgICAgICAgICAgICAg ICAod2hlbiAoZXEgZSAoZnVuY2FsbCBrZXkgKGNhciBsKSkpCisgICAgICAgICAgICAgICAgICAo dGhyb3cgJ2RvbmUgdCkpCisgICAgICAgICAgICAgICAgKHNldHEgbCAoY2RyIGwpKSkpKQorICAg ICAgICAgICAodCAobWVtcWwgZSBsKSkpKSkKKwogOzs7IyMjYXV0b2xvYWQKLShkZWZ1biBjbC1u c2V0LWRpZmZlcmVuY2UgKGNsLWxpc3QxIGNsLWxpc3QyICZyZXN0IGNsLWtleXMpCisoZGVmdW4g Y2wtbnNldC1kaWZ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2wtc2V0LWRpZmZlcmVuY2UgJygx IDIgMyA0KSAnKDMgNCA1IDYpKQorICAgICAgICAgICAgICAgICAnKDEgMikpKSkKKworKGVydC1k ZWZ0ZXN0IGNsLW5zZXQtZGlmZmVyZW5jZSAoKQorICA7OyBvdXIgbnNldC1kaWZmZXJlbmNlIGRv ZXNuJ3QKKyAgKGxldCogKChsMSAobGlzdCAxIDIgMyA0KSkgKGwyICcoMyA0IDUgNikpCisgICAg ICAgICAoZGlmZiAoY2wtbnNldC1kaWZmZXJlbmNlIGwxIGwyKSkpCisgICAgKHNob3VsZCAobWVt cSAxIGRpZmYpKQorICAgIChzaG91bGQgKG1lbXEgMiBkaWZmKSkKKyAgICAoc2hvdWxkICg9IChs ZW5ndGggZGlmZikgMikpCisgICAgKHNob3VsZCAoZXF1YWwgbDIgJygzIDQgNSA2KSkpKQorICAo bGV0KiAoKGwxIChsaXN0ICcoYSAuIDEpICcoYiAuIDIpICcoYyAuIDMpICcoZCAuIDQpKSkKKyAg ICAgICAgIChsMiAobGlzdCAnKGMgLiAzKSAnKGQgLiA0KSAnKGUgLiA1KSAnKGYgLiA2KSkpCisg ICAgICAgICAoZGlmZiAoY2wtbnNldC1kaWZmZXJlbmNlIGwxIGwyIDprZXkgIydjYXIpKSkKKyAg ICAoc2hvdWxkIChtZW1iZXIgJyhhIC4gMSkgZGlmZikpCisgICAgKHNob3VsZCAobWVtYmVyICco YiAuIDIpIGRpZmYpKQorICAgIChzaG91bGQgKD0gKGxlbmd0aCBkaWZmKSAyKSkpCisgIChsZXQq ICgobDEgKGxpc3QgJygiYSIgLiAxKSAnKCJiIiAuIDIpICcoImMiIC4gMykgJygiZCIgLiA0KSkp CisgICAgICAgICAobDIgKGxpc3QgJygiYyIgLiAzKSAnKCJkIiAuIDQpICcoImUiIC4gNSkgJygi ZiIgLiA2KSkpCisgICAgICAgICAoZGlmZiAoY2wtbnNldC1kaWZmZXJlbmNlIGwxIGwyIDprZXkg IydjYXIgOnRlc3QgIydzd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