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:19:37 +0200 Message-ID: <87ft9ncz1y.fsf@web.de> References: <87a738ql1z.fsf@web.de> <87o8ocuu50.fsf@gnus.org> <87k0yzd0b6.fsf@web.de> <87imejpn58.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23938"; 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:20:34 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 1jxB7C-00065z-3m for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Jul 2020 17:20:34 +0200 Original-Received: from localhost ([::1]:34264 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jxB7A-0003Qd-Cq for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Jul 2020 11:20:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46258) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jxB6g-0003QD-QU for bug-gnu-emacs@gnu.org; Sun, 19 Jul 2020 11:20:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49450) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jxB6g-0001zE-HR for bug-gnu-emacs@gnu.org; Sun, 19 Jul 2020 11:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jxB6g-0000vj-Bn for bug-gnu-emacs@gnu.org; Sun, 19 Jul 2020 11:20: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: Sun, 19 Jul 2020 15:20: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.15951719893552 (code B ref 40704); Sun, 19 Jul 2020 15:20:02 +0000 Original-Received: (at 40704) by debbugs.gnu.org; 19 Jul 2020 15:19:49 +0000 Original-Received: from localhost ([127.0.0.1]:60996 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jxB6T-0000vD-5F for submit@debbugs.gnu.org; Sun, 19 Jul 2020 11:19:49 -0400 Original-Received: from mout.web.de ([217.72.192.78]:51065) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jxB6S-0000v1-4l for 40704@debbugs.gnu.org; Sun, 19 Jul 2020 11:19:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1595171979; bh=kDnTnFZwPTGX4FuZ91UpPpgFapCkFGER3bmKFVeMup4=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=lVOf+o/i9JGu3mgCgroqnGbYyTrMKw2uqGve3quVNB9xpggHnm+zyXtf6kXVS6ou7 rYJ6kVUYwBTYgiYtbR2zeq78xZBnxIr0ZfiE5PK9bJdUd5XzbdLSxy74XLGmC0GgAe vgGkEU5daX8lbmbn5ayJRPfvF50WslA7xvh79mgc= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([92.208.183.182]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MGQC7-1k2wPH37sb-00GpD5; Sun, 19 Jul 2020 17:19:38 +0200 In-Reply-To: <87imejpn58.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 19 Jul 2020 16:58:27 +0200") X-Provags-ID: V03:K1:NJPFv+/KwDBEuIAc0ZLBCSOcNLENa9R1cOY8Ni8gpFOURPauWSC w9LgT6bRAPRYjDq34n42iMstaR4MTN0XO8OZ18eyLN6iVJXnFFR2OzJqQQAf4fMq1tyo0bG TZN1fJIkJeEGJkZ5viASufSc/3NHrVkrlG+3nhgT2a4B6Ju2EZGhPSnbq2V2aH+JmXm1mZ1 vNb6I9letARcyVpwPlLlg== X-UI-Out-Filterresults: notjunk:1;V03:K0:ksPCJoCzhDM=:F28WPMGspqlb0vnl8dSKcW j/9GrA7UQi7zxnn2dC6Bgwlo5+/k1GbcMrzi6o+EuFpMYdFiAer/uDCr3QfEuvCARiv+WeQgG I7owU94uLnKD92uBRdWl9tZfMSaBWaTyoYwjOp7sfF1/3rQfSZGwtlC/u1Aqa+9VSX0H6EAAI AnlkhlKOd6i2tbvwqxEFP48yvXA7kGb96h3omszLcoShAx5gEriKZsKyY1XOUhnsHT7sR/9I7 QFZwvrR5xPDSG6Zy/3ikPvooc6Grr3Uqs3QMLhIkih+JBpbnnYFMJRBnVS9HKlXn0iszRRFn2 K3VY3cHdbbELBO9UF9BNANlXdZ/fhV0gnGECyGw0xvO2XkOcf/DokTW8HEMTSKGNZdNWdf0Rd vlSiPA5sjDsvpmtpMCPz12nhG4Sx/dIqauacv5MTbRocnNm6hzlNlKB0se1J/wxrz2qBJKtfk TtYlQuXEfc2JKBz8MpBDTl2rCpxwuAg7KMRRmWH8F7qaDYaoZVxMrYyotNRLdHQ36tU9pkSEl HdwxSUJZSCX5q/vCUEN6voLPNc5NqIc7Q3WnDJH4r9JA+QrpCmU9fHpj4/F3FwEk74k9/Wg+L 0HZTDT2oKjbvq59frrIj5QMmrOxj6pIvZ4vgvhxQRMUVaJOMv2H8k+VrLD0wzm/jJei0BADoB hIA+Rw0vBVMwZmdBAH9MnRGQXC3dPCeAHcKZXVIGU2sXyJq2pEAPRrfBiOlrmOrMVbvX/TWp6 99zoJPy9AB8XwXNdaDKtE80mM3qneNw8KfjRoxbzF5Y4W3jSu+0KGQ8mE11u9LnUiogKYr/R 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:183233 Archived-At: Lars Ingebrigtsen writes: > Presumably there's already code to print a hash table somewhere in > Emacs? That would be the other printer, since your patch adds a new > one. That's what the code currently already does. But: See what I wrote about the purpose of the patch: our saving code needs to modify how elements in the hash table are printed. The Lisp printer doesn't allow that per se. My suggested patch substitutes a very inefficient hack with a more efficient hack. The current code uses printing + re-reading AFAIR - and that on nested hash tables. I thought long about removing the need for this hack altogehter, but this is very complicated, if not impossible (yes, you would need to change the printer). Michael.