From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id INTbObuWYGSXlAAASxT56A (envelope-from ) for ; Sun, 14 May 2023 10:07:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gFTEObuWYGTxEAEAauVa8A (envelope-from ) for ; Sun, 14 May 2023 10:07:23 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4F42345170 for ; Sun, 14 May 2023 10:07:23 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1py6kO-0003Hm-Fl; Sun, 14 May 2023 04:06:28 -0400 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 1py6kI-0003HU-Nn for emacs-orgmode@gnu.org; Sun, 14 May 2023 04:06:22 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1py6k8-0007gc-8Q for emacs-orgmode@gnu.org; Sun, 14 May 2023 04:06:22 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 51A6D24010C for ; Sun, 14 May 2023 10:06:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1684051570; bh=5QfDXmaFWnppSeL5J/avxM+rc0g+R0cDqR8CLrT3+Xg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=YH9vMCpLys7VDQTtpWATefGNQRcWXt/4mFDhlUw1cABCKLUtfzveJ2oNyh5sE531j iLgZ18d8xYDTckYA9K28gs9n8OUIgQvx+rVt2vGkVme2WkanUwJGRI2fakfwtHKqMP RLNJwbFlfz5AtjOyCoxc00SRNY8dUszzUOYwaG1qXEynN4mIBe0mvGqQNjb461PvUa N8sFmxdgYty/71QKmxLrzmaBqSL6aE+EG0y//GqW18Zf+7o5FGwk7Ez47UyNf93k5V PsA7Mht/5QAeiAo7lHnwTom43lcZ+NLtrCLqso8Rgpmt3KkLaIF2AOT4Xy6DhrUYTx QJPGNHP6t6s1g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QJw7562S5z9rxB; Sun, 14 May 2023 10:06:09 +0200 (CEST) From: Ihor Radchenko To: "Christopher M. Miles" Cc: Org-mode Subject: Re: [PATCH] Re: Improve the performance of `org-set-tags-command` on large `org-tag-alist` In-Reply-To: <64604168.170a0220.99926.5b4f@mx.google.com> References: <878rds1xta.fsf@localhost> <87a5y8iiak.fsf@localhost> <645fc094.170a0220.4d545.38e1@mx.google.com> <87wn1cgjij.fsf@localhost> <64604168.170a0220.99926.5b4f@mx.google.com> Date: Sun, 14 May 2023 08:09:36 +0000 Message-ID: <87lehrgwqn.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de 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, 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-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1684051643; a=rsa-sha256; cv=none; b=IkAS3NqCHdkV1VRaq6MSmL+7U4faXHC3Oen04Qfu/3ifD7HYGXf4GWP90OqCxq8dEE6vED 5Y6LkyWisyHDQke2A2zMyRUA2NxHi8WVYEB+ItbqQdTeJIExkQ2Ajm9FfRM47LqlswFWwW wTNjVs8Rv1rGyej6895aZr7GDbuLL/uzzcLJRTIM55mQG4Hnwb0ZLOKtPaBRQVrGhpVyTo rjlzPkyUsfnJU/hLJTVre3WhtP3fjuJ8mFJ2mJwX00RvDX/PQgJXqIi7O7LqGY7qpLocyr WlkLwLT7WUH0Jp/vwVjNzEcYy0Hjt/SGqj1L+vbpYy8SiHxTtAy7HvltAJUcyg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=YH9vMCpL; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1684051643; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=WAVufnvE3aGBCf9dsy1/5gjONMKaSW88/Sp5niS1SZw=; b=uHcFNEe4+4jXmD9WG/2NZrhre2opn/ZGx5huLdUS67ONp8vLepD5HjiYl8QjbtuXd7e4Mv VUvOAZVr1j50o+SkxEafFQA4NZCCIs+Vj+KU48wahpvygqNc9IZ005aco4pJ5uqx9VfM6/ ZQAiumt545rsB6+ENAcQyOuof4v/mjX3v9/qBs2z4cfvZUq52H576gRobhrHslW39NJUJ/ 5oBrJ6c7YMCKxWGX1SdN/tvWWsuNtHVgfjTKHgsDFTCGxn6eec1JhOySqGmheQzUo7IsXh vEtYMIcAmz2tQYYEZym30OFDjLaitVRS1CZqMfKXTRIL2a394ukHOXnS5rdt1A== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=YH9vMCpL; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.66 X-Spam-Score: -4.66 X-Migadu-Queue-Id: 4F42345170 X-TUID: 3eNxGWCxjL1u "Christopher M. Miles" writes: > What about like this? > > #+begin_src emacs-lisp > (setq tbl (let ((bound-tags (seq-filter 'cdr fulltable))) > (if (length> shortkeys 0) > bound-tags > (seq-take fulltable 26))) > char ?a cnt 0) > #+end_src What do you mean by "shortkeys"? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at