From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/50365 Path: main.gmane.org!not-for-mail From: Kevin Greiner Newsgroups: gmane.emacs.gnus.general Subject: Memory exhausted while saving .newsrc.eld Date: Mon, 24 Feb 2003 16:30:45 -0600 Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1046125925 4233 80.91.224.249 (24 Feb 2003 22:32:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 24 Feb 2003 22:32:05 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18nR8j-00015p-00 for ; Mon, 24 Feb 2003 23:32:03 +0100 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 18nR7w-0006vD-00; Mon, 24 Feb 2003 16:31:12 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 24 Feb 2003 16:32:11 -0600 (CST) Original-Received: from sclp3.sclp.com (sclp3.sclp.com [66.230.238.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id QAA07558 for ; Mon, 24 Feb 2003 16:31:57 -0600 (CST) Original-Received: (qmail 21898 invoked by alias); 24 Feb 2003 22:30:51 -0000 Original-Received: (qmail 21893 invoked from network); 24 Feb 2003 22:30:51 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by 66.230.238.6 with SMTP; 24 Feb 2003 22:30:51 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 18nRMz-000217-00 for ; Mon, 24 Feb 2003 23:46:45 +0100 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 17 Original-NNTP-Posting-Host: h-66-134-21-50.hstqtx02.covad.net Original-X-Trace: quimby.gnus.org 1046126805 7195 66.134.21.50 (24 Feb 2003 22:46:45 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 24 Feb 2003 22:46:45 GMT User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.2 Cancel-Lock: sha1:5/hNsExJtbY/Sy3ypMaRw//toz0= Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:50365 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:50365 I just noticed that doing a 'J s' (gnus-agent-fetch-session) on sufficient large number of groups can make the gnus-newsrc-alist so large that you run out of memory while saving it. I've traced the problem to gnus-save-newsrc-file which writes everything to a buffer then uses save-buffer to write it to a file. I'd like to rewrite gnus-save-newsrc-file to write directly to a temp file then, if no errors occur during writing, rename the temp file as .newsrc.eld. I plan on handing version-control correctly so that the new gnus-backup-startup-file will be respected. The only problem that I see is gnus-save-quick-newsrc-hook. This hook is currently run while in the temporary buffer. By its documentation, you can use it to set the buffer's version-control. Does anyone use this hook for anything other than setting version-control? If so, I'd sure like to hear about it. Thanks, Kevin