From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#40704: 28.0.50; Improve and speed up (Gnus) registry saving Date: Tue, 21 Apr 2020 01:26:39 +0200 Message-ID: <87lfmpkac0.fsf@web.de> References: <87a738ql1z.fsf@web.de> <87pnc2lrpi.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="13676"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 40704@debbugs.gnu.org To: Eric Abrahamsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 21 01:27:47 2020 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 1jQfpL-0003PZ-AX for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 Apr 2020 01:27:47 +0200 Original-Received: from localhost ([::1]:43918 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQfpJ-0002Wr-Ha for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 20 Apr 2020 19:27:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34568) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQfoe-0002Wf-Ko for bug-gnu-emacs@gnu.org; Mon, 20 Apr 2020 19:27:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jQfod-0003QD-06 for bug-gnu-emacs@gnu.org; Mon, 20 Apr 2020 19:27:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37101) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jQfoc-0003Pe-Km for bug-gnu-emacs@gnu.org; Mon, 20 Apr 2020 19:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jQfoc-0001aE-GE for bug-gnu-emacs@gnu.org; Mon, 20 Apr 2020 19:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Apr 2020 23:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40704 X-GNU-PR-Package: emacs Original-Received: via spool by 40704-submit@debbugs.gnu.org id=B40704.15874252146073 (code B ref 40704); Mon, 20 Apr 2020 23:27:02 +0000 Original-Received: (at 40704) by debbugs.gnu.org; 20 Apr 2020 23:26:54 +0000 Original-Received: from localhost ([127.0.0.1]:48647 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jQfoU-0001Zs-EI for submit@debbugs.gnu.org; Mon, 20 Apr 2020 19:26:54 -0400 Original-Received: from mout.web.de ([212.227.17.11]:41993) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jQfoS-0001Zf-LG for 40704@debbugs.gnu.org; Mon, 20 Apr 2020 19:26:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1587425197; bh=0QCYR7O69QmhzMfpJcl1bMsQP6AeVIaJejQwaJiBMrU=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=Gef+F4dTYADY1VWhSoPZQWXk29y7qWiJWJsllhma22JB+xchCxhjmknFhJU0YSNd3 OWnpVabUZ0gPTJadhw38DRX2evNyd+XnB7AAm22YKNzaIB0Bn/ghd102j6/SBnI/Rc 2eiWOEwTB+OBMY14tGhnwcrZhBrAFI4PsLYAOPds= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([188.98.99.7]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MTPn1-1jpivq1Y7r-00SLvU; Tue, 21 Apr 2020 01:26:37 +0200 In-Reply-To: <87pnc2lrpi.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Sun, 19 Apr 2020 21:13:45 -0700") X-Provags-ID: V03:K1:t89YeEDARZ0Sgtk+ST2kZC618TMfYTG+BrzNyv2OHecKf/7oPOw arkqyZGiaEDLSi4k2p7+9m6jFpfMWzYvYGOuh1X0I5UHnidElAFzozfx55XwR5qmV/dRGdU kGdtmjBFz3X+e65xK42EmRiNcX/Nen8CHa2ghzbJIheGAR740yMxJkdn5QC0Zzch2hr1OnX fVReOwa2XTW3z7r/FBACQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:zEQ4jdF+ysc=:G4rSWiqLSczMop5KwOU8rJ kIuZFKH4aWgkJoAN06CPi1as/H61smFUoIOwhkWx1v1LUGSbCqhPIHKTUmsj6pMNAcelkHXo6 RiyKiW7Z2XU7dPi7gqudFRo3lMzsyfU0L/J7tEQaMlHsnOg70fdxUFW/7MvP9U65xS6cEVF+G LD39c7QsBqV0xMSZnK30NtSC8HxozsmYTh++DWj3RJsbTADhROhCH+XkG8vJl6fn39aVd+vxu n3yaK8QyrLI/A3LX7CMRj5XwDZ2swz1J0cAfg2JuEhHk7KMbl/fiiNcPXJtZV9jJ4xMmdTxpJ gWGbimz4mWVawHlYvA6dzd5tycl4QTnU9BsFyWuCRo6wJ53wOu2Xx9vWFu6fa9TdVF43PlwOB NOSSX+RoDMlydAjqAiUHHSWjnrNvbeLBvxafTVU/+y36K4QQ3gzYfcz0ZI8kh12qCEPCktWXS JXFffwywzZYGQS5F42rbzp7YqQnybamWT/3f1ueRCkTNoTY9+jj1jTcCxYGjt5IemjN+VYGKh DmJgBQZmZ4BxS3BlfzAf46bD8gse0eWyhUfZT5hyOPGLB3ThFsz6bwll2rzT7hfIx+eXCXriZ lJTQDJJqunTAqJ1dQmp6aQLtnZVXfKezS3BjG+WQ7/8/absZz8vvhcILw8Cpl7AMMZp+Jz/Ej 5wvP7l+skylBXf6UVdVXDy5TBRuVxZCSLoWqRzas6Gdka27QE9zAJawoaPz1RzSaY32z/TToJ aK510lhLYvFORd/ZH+SIH49wgIVHx4s+VMcGuhE07we3GQfh1NSznmgd0NDoDRLVEu/xabLT X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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" 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" Xref: news.gmane.io gmane.emacs.bugs:178735 Archived-At: Eric Abrahamsen writes: > > Any comments on the suggested changes? > > Not that it's up to me, I wonder who it's up to... > but I'm all for putting in #1 and #3 as-is, and adjusting #2 to scale > with the number of `gnus-registry-max-entries', with the addition of a > hard ceiling. Too large values of `gnus-registry-max-entries' can be harmful (fragmentation of memory?), I wonder if this can potentially be the case here. I'm also not sure if scaling is a good idea at all. The value I chose will still make gc happen much less frequently even if your registry is huge. So it's still a win. If your value is too large, the final cleanup may take longer as necessary -- who has experience with this problem -- anybody? Thanks, Michael.