From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/41864 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.gnus.general Subject: Gnus & garbage collection Date: Sat, 12 Jan 2002 05:01:13 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035177193 8328 80.91.224.250 (21 Oct 2002 05:13:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 05:13:13 +0000 (UTC) Return-Path: Original-Received: (qmail 28583 invoked from network); 12 Jan 2002 04:16:05 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 12 Jan 2002 04:16:05 -0000 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 16PFa8-0001A7-00; Fri, 11 Jan 2002 22:15:48 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 11 Jan 2002 22:15:41 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id WAA01941 for ; Fri, 11 Jan 2002 22:15:31 -0600 (CST) Original-Received: (qmail 28574 invoked by alias); 12 Jan 2002 04:15:33 -0000 Original-Received: (qmail 28569 invoked from network); 12 Jan 2002 04:15:33 -0000 Original-Received: from fepa.post.tele.dk (195.41.46.143) by gnus.org with SMTP; 12 Jan 2002 04:15:33 -0000 Original-Received: from defun.localdomain ([195.249.130.113]) by fepA.post.tele.dk (InterMail vM.4.01.03.23 201-229-121-123-20010418) with ESMTP id <20020112041530.YWTW27566.fepA.post.tele.dk@defun.localdomain> for ; Sat, 12 Jan 2002 05:15:30 +0100 Original-To: ding@gnus.org X-Face: &>4YWj)5jy97[$J|&W(MX>,:L.9*|o]WXwhY40_'#-Yc:J-&v+U*?uhK9cqS'eaG(SLj0o E)IS]Ua_g,_"S$Xv)V5^T<^s?U8Tt6XZ~2EdDl^]={px>)aE[grl6~~G`7:vKu!:tZ_.L6,g7qV[; vn><9`4hh(Pf^gH'EJ[!c/$Jog51Q Original-Lines: 33 User-Agent: Gnus/5.090005 (Oort Gnus v0.05) Emacs/21.1 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:41864 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:41864 Hi! I tried to set `garbage-collection-messages' to t, and I noticed that Emacs collects garbage like crazy when performing some Gnus actions. Here are some timing results that show how it affects performance when entering a large summary buffer and a server buffer. This is with the default value of `gc-cons-threshold' (400,000 in Emacs): Function Name Call Count Elapsed Time ======================= ========== ============ gnus-topic-select-group 1 94.222058 gnus-server-read-server 1 50.094491 And this is with `gc-cons-threshold' increased to 4,000,000: Function Name Call Count Elapsed Time ======================= ========== ============ gnus-topic-select-group 1 54.852086 gnus-server-read-server 1 27.06671 So, with the default value nearly half of the time is spent in the garbage collector. I don't know if it's worth doing something about it -- maybe parts of the code that are likely to generate large amounts of lisp data should have `gc-cons-threshold' increased, or maybe people should just increase it themself if they want a faster Gnus (and memory permits it). -- Cheers, Jesper Harder