From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#40704: 28.0.50; Improve and speed up (Gnus) registry saving Date: Sun, 19 Jul 2020 17:23:38 +0200 Message-ID: <87blkbcyv9.fsf@web.de> References: <87a738ql1z.fsf@web.de> <87o8ocuu50.fsf@gnus.org> <87k0yzd0b6.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40846"; 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, Eric Abrahamsen To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 19 17:24:30 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 1jxBB0-000AVM-SF for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Jul 2020 17:24:30 +0200 Original-Received: from localhost ([::1]:37912 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jxBAz-0005Gk-Nr for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Jul 2020 11:24:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47048) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jxBAY-0005GW-8V for bug-gnu-emacs@gnu.org; Sun, 19 Jul 2020 11:24:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49467) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jxBAX-0002ZP-Vv for bug-gnu-emacs@gnu.org; Sun, 19 Jul 2020 11:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jxBAX-00013I-Qx for bug-gnu-emacs@gnu.org; Sun, 19 Jul 2020 11:24:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Jul 2020 15:24:01 +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.15951722384032 (code B ref 40704); Sun, 19 Jul 2020 15:24:01 +0000 Original-Received: (at 40704) by debbugs.gnu.org; 19 Jul 2020 15:23:58 +0000 Original-Received: from localhost ([127.0.0.1]:32780 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jxBAU-00012y-DQ for submit@debbugs.gnu.org; Sun, 19 Jul 2020 11:23:58 -0400 Original-Received: from mout.web.de ([212.227.17.12]:44525) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jxBAS-00012l-K3 for 40704@debbugs.gnu.org; Sun, 19 Jul 2020 11:23:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1595172220; bh=dBIQcGW0GUln5W1uSxDanpqL3dSonmWuWMm1ycBtg/E=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=e4mKggmoA77n5ebvsesWHeuKjt6Di1kHs82sxVPHCxKoaAt476P8DGW3A/1lOBTd1 E8/zXFIK6AQ2kbUi4iKLjwcl5BdhFuy8jctqSrUX+QXWwDrql4qtLQ62j5M1WhLrWd 5IWg8KznzWHJGWAPsh6SvMypRN8hT7ZW6ffGo8rA= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([92.208.183.182]) by smtp.web.de (mrweb105 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MS17h-1kQVZn0Vat-00TLEU; Sun, 19 Jul 2020 17:23:40 +0200 In-Reply-To: <87k0yzd0b6.fsf@web.de> (Michael Heerdegen's message of "Sun, 19 Jul 2020 16:52:29 +0200") X-Provags-ID: V03:K1:v3H+aBbFWYV+JlxH7PktdUJC3k1ubKAbNyxxd0L8iPj5SxJUP8r cSI4F/yuA624iT4tlqAXoLZdTNe1WQek16iBVpWcUBUEiyHbYfE9Mav3Ri40pv/HFyOnCkb JRycNInma6APE52Og/epT2lXq9rPzx5WwFn6l22Wzl95XOXo5YENIXHK+jE1ICOv9XkxzZ6 IeIiZuDv4Uvx7SXoz3tiw== X-UI-Out-Filterresults: notjunk:1;V03:K0:en8rTiFRy3M=:Tfd3TrbtfMn5VAxzWAwQk+ oK2W9eKEInR4lthHJ/wcv2kMzI54qeAlaWpPq4t372TEnSC+SXrZGauc2hQkJ7pqopXUfLNIX /PyqJcrPafNEy2SICIzTHOoZHvO7M5ybh1jSqjggHUOhnrRbGhugVmwnJfDb81iz3VCodaAEj y0mzjfbw/KMUpxzrDdWDN3YvOQyTJZHJ9hlxA81DJ4r5WKp9oh8WHZGzbtOjQHu4oCoIpeoOE E7y07VQ6ku5HEstnHkHhEqp3rCp7VwfZWLUqGn93GZMnyOLgZCm5sfDga4XJ6PFIDY2ZAusoY B2k8hMudQZXgVcFQRkaCXBh3m34npfnoBgvhVA/zpDnFmvlENY3GtKYH2o2diiBrnZ34L7OWY AM6BuzrV7xjYTBI5tD/lCxtGHowgtGdMQqBsBRdchmDwHnqYdZu3FqDpAfVDqTW424qjxwMBj 9gfrMwfVBGppQcJ/RQpdPtknUZWiB8eEKAMP2T7CifeCPm0y644ELwyo0Wjt0tjpIdVSethJ0 NtGcOZ35W0vsP1w/dWKmrKoEWROR2BQ3L+MV/OSWbSn+zT4haHSs2uCD1OhLlIPGy2XhXDbZT LHf6joqTj0cUb+JZhtNqN+ccGrL4IG0DNGcEcgXOkDqYqnDfNCUa3AwmrtQ/QAAbJNjqMwA2b msLBikpNjS+aPhdh7NrMafVOMlpTQ7+XSj+Egj8ShY42dVirULp5w5g9yTSI0yYAQuc1ZroLs kBs8rpj+VfZfmQEMFB3vN1aWhBFeeJkqaer/pU2JQpvDpiYxa4vYWssUiI2NHdASxlGZPYFd 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" Xref: news.gmane.io gmane.emacs.bugs:183236 Archived-At: Michael Heerdegen writes: > > > + (gc-cons-threshold (max gc-cons-threshold (* 800000 500))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Maybe it would be wise to factor this out into a defvar so that it's in reach of users. The value could be a function whose return value could also depend on the actual size of the registry. Michael.