From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/68000 Path: news.gmane.org!not-for-mail From: "Ami Fischman" Newsgroups: gmane.emacs.gnus.general Subject: size of gnus-undo-actions Date: Fri, 26 Dec 2008 16:41:30 -0800 Message-ID: <9aa0cfde0812261641x3c09adcbs34e3332483399b91@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1230338590 4949 80.91.229.12 (27 Dec 2008 00:43:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 27 Dec 2008 00:43:10 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M16446@lists.math.uh.edu Sat Dec 27 01:44:17 2008 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1LGNHs-0005gC-6o for ding-account@gmane.org; Sat, 27 Dec 2008 01:44:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1LGNFm-0003Jf-6e; Fri, 26 Dec 2008 18:42:06 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1LGNFk-0003JM-PS for ding@lists.math.uh.edu; Fri, 26 Dec 2008 18:42:04 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1LGNFi-0008VE-6K for ding@lists.math.uh.edu; Fri, 26 Dec 2008 18:42:04 -0600 Original-Received: from mail-ew0-f16.google.com ([209.85.219.16]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1LGNFw-00017J-00 for ; Sat, 27 Dec 2008 01:42:16 +0100 Original-Received: by ewy9 with SMTP id 9so3960213ewy.17 for ; Fri, 26 Dec 2008 16:41:31 -0800 (PST) Original-Received: by 10.210.38.5 with SMTP id l5mr8311565ebl.62.1230338490911; Fri, 26 Dec 2008 16:41:30 -0800 (PST) Original-Received: by 10.210.92.12 with HTTP; Fri, 26 Dec 2008 16:41:30 -0800 (PST) Content-Disposition: inline X-Spam-Score: -2.2 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:68000 Archived-At: What is considered a reasonable size for gnus-undo-actions (buffer-local variable in *Group*)? For a session with uptime 6d18h I've got a 237-element gnus-undo-actions value that takes 12MB to prin1, or almost 50KB per recorded action. Quitting gnus frees up over 1.3MB of lisp heap (according to memory-usage.el). Does gnus-undo-actions really need to be so large? FWIW, I used this to get the above numbers: (save-excursion (set-buffer "*Group*") (let ((len (length gnus-undo-actions)) (size (length (prin1-to-string gnus-undo-actions))) (limit gnus-undo-limit)) (message "Length:%d, size:%d, limit:%d" len size limit))) Which printed: Length:237, size:12037804, limit:2000 Cheers, -a