From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#37321: 27.0.50; Excessive gc in a use case (el-search) Date: Tue, 08 Oct 2019 14:38:57 +0200 Message-ID: <8736g3pg2m.fsf@web.de> References: <87lfv1pm5x.fsf@web.de> <874l1mc01w.fsf@web.de> <87woeidd4g.fsf@web.de> <733d0142-51ee-55df-de0c-cca7c989b370@cs.ucla.edu> <875zlgu2y8.fsf@web.de> <6d670180-e2ee-030f-ef0e-ad0c5c7a8ef5@cs.ucla.edu> <87tv8zs2r9.fsf@web.de> <83tv8zl0es.fsf@gnu.org> <87sgo3typ1.fsf@web.de> <83o8yry56c.fsf@gnu.org> <87lftvzjmr.fsf@web.de> <83k19fy4p7.fsf@gnu.org> <87pnj7xzhe.fsf@web.de> <83d0f7xwr8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="49449"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: eggert@cs.ucla.edu, 37321@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 08 14:41:17 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iHoni-000Cfv-LM for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Oct 2019 14:41:14 +0200 Original-Received: from localhost ([::1]:55160 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHong-0005zL-89 for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Oct 2019 08:41:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60094) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHomd-0005vQ-BZ for bug-gnu-emacs@gnu.org; Tue, 08 Oct 2019 08:40:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iHomY-0005kL-Eb for bug-gnu-emacs@gnu.org; Tue, 08 Oct 2019 08:40:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40876) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iHomY-0005jf-9w for bug-gnu-emacs@gnu.org; Tue, 08 Oct 2019 08:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iHomX-00034B-Ue for bug-gnu-emacs@gnu.org; Tue, 08 Oct 2019 08:40: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: Tue, 08 Oct 2019 12:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37321 X-GNU-PR-Package: emacs Original-Received: via spool by 37321-submit@debbugs.gnu.org id=B37321.157053834711721 (code B ref 37321); Tue, 08 Oct 2019 12:40:01 +0000 Original-Received: (at 37321) by debbugs.gnu.org; 8 Oct 2019 12:39:07 +0000 Original-Received: from localhost ([127.0.0.1]:49697 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHole-00032z-OU for submit@debbugs.gnu.org; Tue, 08 Oct 2019 08:39:06 -0400 Original-Received: from mout.web.de ([212.227.17.12]:33517) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHolc-00032V-Ur for 37321@debbugs.gnu.org; Tue, 08 Oct 2019 08:39:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1570538332; bh=0yeF8RSI3Et/gnetsZblLV3SJwZj74UZA43T5pJ4j4A=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=pqa8Cj5k4dy4To0PNSlk2CniDnehX29t+aJ0v2SapH35pBaa44gGgxY/AUpCMppdj e7b9X2JJdH5e++hpPZnIBRVbwYX/Me7hnVyiLXP/QJG94N9COqmaPtv7Cy62Tntnng OHnfISpNkp68e9f2rLaQhPxZ8cSduVWRCcjbCuvc= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([94.218.185.16]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MRCjL-1ifr070IH9-00Ue1f; Tue, 08 Oct 2019 14:38:52 +0200 In-Reply-To: <83d0f7xwr8.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 08 Oct 2019 15:11:23 +0300") X-Provags-ID: V03:K1:3ZZoWOQ43NbGQpNU8ssc920C4zzU5DwuGf7vq0+uedYjqP67ik8 yYPACU0U2EuSrWe2Mz+u3cqAIMFOjQlWLoDKxZlLavVB6/aT+PUNhapp39GLhkDtcVOL/WN f/SBXpp/V+UA6utCm2tVHccl2sUGyrWW3d+UQXaGHUq+ZA9hE7QgtUEHJpoEONU8R7nD66r WfW9qeA1tbNZ1AnsOkF4A== X-UI-Out-Filterresults: notjunk:1;V03:K0:TEyCrFEMab0=:scYbT5/OnFhF1Kp5eSS095 NslY5+CQrHjDAQhiE31apOdbo5fc191Fk87NhuHQOZlaKUbQlC1ze7r8PAhVw6lr3ebM96dZb xDfVz7oRm/lbrGCProi7omNnHEmANE9AKTyzufv0rGH7oGbolo76uv08/PTaGFYq5DhP0NKd3 DpZwbo9Oj3Z3ctDh17hCj8o0BdXe/wspijKxrgsP0qd7BFvsKqoPwNORl5I4gOPdAAi+/43yT jvkqo8pvSSorFMGx3Fga/yrM3O3/tnghfR7/434E7WDnTlf11eraotTL3chfgwXABb2pRTH8+ r+DY2IWxOO0vDsIZz+0nYlCRAupgZVt/b7GcCeDpiSHkL9sT8FP9l98L3RhaTHA1Xsa0psjjB vhqrxN1ppb5cQQdJYLSEKo9Ll578PID2LrSWI9SFE5FNL7z5KP1ubuMvpzLx+JoTdY++OjOnz N8nMUdFf2K06KPrnqVMOveptScIO90KzMIMCSqyD4ALq+eqVsC7isz0JJdglgw5eLjaSNSIHy 49grQHV1wk5JnbcVliH8y5r/rxA5JjgOaN7/1Mh6aSNZxItCKSYmLucTi/VL0AJb8HGxrUyqm sewPtZ4wAe+rqpdYjePUu25S1jSn5qkxLV0wxJdvNjdXr+7hrnsyoq4X+bAtWOG9gp/3acl74 6x5g3dbsETNW2TqsaRuY9aeeJD6gsLvxgBXnHNBtHkUBKcLAgd1KUSppCV0zd6F7LG7JLvMGE MVYcgoOjC0MfL3Jm/TVNEGMuI7Syty2MtpPuPfH5aGPBjSbUOJhIeUzXcfKIcrIrE3Dd0Si6 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:168642 Archived-At: Eli Zaretskii writes: > IMO, this suggests that your code produces a lot of garbage Yes, mostly unavoidable afaik. >, so it is not a good basis for setting the default values. I would be >OK with bumping up the default gc-cons-threshold 8-fold, or even >16-fold, but increasing it by a factor of 256 is too much, IMO: it >would mean we only GC after consing ~200MB of data, which is about half >the heap size of my current Emacs session, which has been up and >running for 28 days, and has 360 live buffers. Ok, then I'll increase gc-cons-threshold in el-search as it had been suggested. Unless you have a better idea of how to handle the garbage in a way that gc doesn't lower the speed that much (I wish I could explicitly free the many garbage objects). Thanks, Michael.