From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 19489 invoked from network); 30 Nov 2020 20:21:02 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 30 Nov 2020 20:21:02 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1kjpej-00FYKc-Ch; Mon, 30 Nov 2020 14:20:17 -0600 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94) (envelope-from ) id 1kjpei-00EQDk-5b; Mon, 30 Nov 2020 14:20:16 -0600 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1kjpef-00EQC6-Dc for ding@lists.math.uh.edu; Mon, 30 Nov 2020 14:20:13 -0600 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1kjped-004QtQ-Jv for ding@lists.math.uh.edu; Mon, 30 Nov 2020 14:20:13 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:Mime-Version:References:Message-ID:Date:Subject: From:To:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=BVJV/9AZNctDUJa0MkC4q7ihhMrJfR9EUnmFss0l4Do=; b=NmmFnfmkN2aKMMvslogYHMP8O9 1GgRCfhJAwiajdoBghhRo3icOIUY3Odd6Fnq7N2GjsGpKnSdrtKtmqEbCIkoigMGWtn0K1cH5twhP +9MTTB+r//D2unzCIhVtT/yYmn6EzuZBGxk7kfK+oTPtNjRK0H0nT+Gt/l624jajoa0E=; Received: from static.214.254.202.116.clients.your-server.de ([116.202.254.214] helo=ciao.gmane.io) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kjpeU-0004u4-9u for ding@gnus.org; Mon, 30 Nov 2020 21:20:07 +0100 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1kjpeT-0003cv-Op for ding@gnus.org; Mon, 30 Nov 2020 21:20:01 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: ding@gnus.org From: Eric Abrahamsen Subject: Re: Don't default to making registry entries for all articles Date: Mon, 30 Nov 2020 12:19:55 -0800 Message-ID: <87wny2r40k.fsf@ericabrahamsen.net> References: <87360qsiso.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cancel-Lock: sha1:3db/C7x5hwjb3xG20maagKlho08= List-ID: Precedence: bulk Eric Abrahamsen writes: > Hi all, > > I've been thinking about how to do this for a while, and think I've got > an okay approach. > > The Gnus registry registers everything by default, which slows down > summary buffer creation, and also saving Gnus. The only time you'd > actually want everything registered is if you're splitting using > `gnus-registry-split-fancy-with-parent', which I have to imagine is a > minority of users. > > The attached patch lets you change this behavior so the registry only > creates and saves entries that you have made manually, either by setting > a mark on an article, or via some other library. > > It does this with a new defcustom, `gnus-registry-register-all-p', which > I'd like to default to nil. > > If this is nil, `gnus-registry-register-message-ids' won't do anything. > > The patch also adds an optional NO-CREATE argument to > `gnus-registry-get-or-make-entry', to tell it to only get, not make. > Lastly it has `gnus-registry-get-id-key' set that flag to t, so getting > an id key doesn't create a new entry (while setting an id key does). I suppose a slightly less intrusive approach would be to have `gnus-registry-get-id-key' also check the value of `gnus-registry-register-all-p', and pass the NO-CREATE flag accordingly.