From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: No Wayman Newsgroups: gmane.emacs.bugs Subject: bug#70686: 30.0.50; cl--position is slow Date: Tue, 30 Apr 2024 19:51:23 -0400 Message-ID: <87y18uwgsk.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13839"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.12.4; emacs 30.0.50 To: 70686@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 01 01:52:10 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 1s1xGc-0003T4-4k for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 01 May 2024 01:52:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s1xGB-0007PE-OC; Tue, 30 Apr 2024 19:51:43 -0400 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 1s1xG9-0007Oq-TM for bug-gnu-emacs@gnu.org; Tue, 30 Apr 2024 19:51:41 -0400 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 1s1xG9-0007Pr-LL for bug-gnu-emacs@gnu.org; Tue, 30 Apr 2024 19:51:41 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s1xGU-0005C7-Bg for bug-gnu-emacs@gnu.org; Tue, 30 Apr 2024 19:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: No Wayman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Apr 2024 23:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 70686 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.171452112119959 (code B ref -1); Tue, 30 Apr 2024 23:52:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Apr 2024 23:52:01 +0000 Original-Received: from localhost ([127.0.0.1]:34101 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s1xGQ-0005Br-Qt for submit@debbugs.gnu.org; Tue, 30 Apr 2024 19:52:00 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:48156) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s1xGM-0005Bl-9o for submit@debbugs.gnu.org; Tue, 30 Apr 2024 19:51:57 -0400 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 1s1xFs-0007LQ-Lj for bug-gnu-emacs@gnu.org; Tue, 30 Apr 2024 19:51:25 -0400 Original-Received: from mail-ot1-x330.google.com ([2607:f8b0:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s1xFr-0007P5-5x for bug-gnu-emacs@gnu.org; Tue, 30 Apr 2024 19:51:24 -0400 Original-Received: by mail-ot1-x330.google.com with SMTP id 46e09a7af769-6eb8ea5ac95so3774640a34.2 for ; Tue, 30 Apr 2024 16:51:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714521081; x=1715125881; darn=gnu.org; h=mime-version:message-id:date:user-agent:subject:to:from:from:to:cc :subject:date:message-id:reply-to; bh=P1jbNtyw3eNJCz7Zh/krKYxkGlf00fcKotl1subDUYs=; b=B3o7H2lC3z4Ju6dhTEbXSsLANB2g84oSyJ6jGOaB6rj/f+5M1Xou/plHOmNXbyKWz6 m0u7RgrcGzwjuSDgW/bIEzYVcl6CdKKrpRMrDR+YqVWRLlDyG1KAIpSQUx1Jfkxgydpo +bSzTYrcxghnBjtKPJJLyGrudZB+w51sXCRhIUJfx5VPsstQCEuI9OO+bLTkydh6Masb gG03Uf5Sb+oO/699qHBr4NzFxyNSlRDv/LklwjXmkP3wz82NSSya3pDy3gwNvmgQ37Cc add0fXLmkReILgtRD1o+jR4btiBl6WsIr+gw6qthJiOsq1RwVKSeSqmmHJGzZm6uL4Mz WVtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714521081; x=1715125881; h=mime-version:message-id:date:user-agent:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=P1jbNtyw3eNJCz7Zh/krKYxkGlf00fcKotl1subDUYs=; b=qn+2iMH9/s6XFktBCyefTFOIliyB/1VdmV9o9Lg+fdL0yX2GmqvW64mg11EQAl8wzq qgcoAV4F0pVGZwhLvf6oZ/ZlTTnkX70Q5OaPsRLWl7lqd506ISxMLCkM/alUmzd1+7Ge wJEDaq3AXDM81nOfcsL87Np8xDbxWd3tWhh7oS2Qr1YcxRC9OAe2PCrc0C00fOE1D7Z6 u76zFPNDZZ0f5wOhYtlA5d5xsMBVdA+SKkSgdZvh9oE5JrOI1Q1hafd2NvHEy+vw3VC5 KfbB3y6RKL27+UmjKLWWRGT0sqGMfoBXH32QY+vNzd1S9ultdwqR6HMYApboFglKzvzE fdLg== X-Gm-Message-State: AOJu0Yyixq43PBt4CThIO5xew0UMF14xhATCPD3LE3Qt/SWdRxxjOgXc 84tFStB4m1jx2Usp6/lxXRGeeeAyL+LM1/ViBY7NHRYjtbmLZgk72f034g== X-Google-Smtp-Source: AGHT+IFfZK1wOtZ4+ZIvO4aigwlgrMxEVzk5ISNSsCwUQY+DvWGBliC2tqzupcINXN1LmjUnn0PxiA== X-Received: by 2002:a9d:65c8:0:b0:6ee:32ab:8124 with SMTP id z8-20020a9d65c8000000b006ee32ab8124mr1190566oth.25.1714521081076; Tue, 30 Apr 2024 16:51:21 -0700 (PDT) Original-Received: from laptop ([2601:84:847f:c697:e217:2894:4724:14f4]) by smtp.gmail.com with ESMTPSA id h6-20020a05620a13e600b0078f044ff474sm11866821qkl.35.2024.04.30.16.51.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 16:51:20 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::330; envelope-from=iarchivedmywholelife@gmail.com; helo=mail-ot1-x330.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 autolearn=ham autolearn_force=no X-Spam_action: no action 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:284227 Archived-At: I've recently been avoiding cl-position, cl-remove-duplicates, and any other functions which use it internally. I realize there's a performance trade-off in for the flexibility such functions provide, but it may be worth investigating cl--position in particular. Today I replaced an instance of cl-remove-duplicates with an equivalent cl-loop for a 15x performance improvement at the cost of 2 lines of code.