From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/25755 Path: main.gmane.org!not-for-mail From: Dave Liebreich Newsgroups: gmane.emacs.gnus.general Subject: Re: pop3 *very* slow? Date: Thu, 07 Oct 1999 22:17:49 -0700 Sender: owner-ding@hpc.uh.edu Message-ID: <199910080517.WAA12482@oberon.dnai.com> References: <199910072154.OAA19115@oberon.dnai.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035163085 15701 80.91.224.250 (21 Oct 2002 01:18:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:18:05 +0000 (UTC) Return-Path: Original-Received: from spinoza.math.uh.edu (spinoza.math.uh.edu [129.7.128.18]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id LAA14376 for ; Fri, 8 Oct 1999 11:12:54 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by spinoza.math.uh.edu (8.9.1/8.9.1) with ESMTP id KAB02060; Fri, 8 Oct 1999 10:12:28 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 08 Oct 1999 10:12:37 -0500 (CDT) Original-Received: from epithumia.math.uh.edu (IDENT:tibbs@epithumia.math.uh.edu [129.7.128.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id KAA22977 for ; Fri, 8 Oct 1999 10:12:21 -0500 (CDT) Original-Received: (from tibbs@localhost) by epithumia.math.uh.edu (8.9.3/8.9.3) id KAA12613 for ding@hpc.uh.edu; Fri, 8 Oct 1999 10:11:47 -0500 Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id AAA14526 for ; Fri, 8 Oct 1999 00:20:17 -0500 (CDT) Original-Received: from oberon.dnai.com (oberon.dnai.com [207.181.194.97]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id BAA10950 for ; Fri, 8 Oct 1999 01:18:19 -0400 (EDT) Original-Received: from dnai-216-15-97-156.cust.dnai.com (dnai-216-15-97-156.cust.dnai.com [216.15.97.156]) by oberon.dnai.com (8.9.3/8.9.3) with ESMTP id WAA12482 for ; Thu, 7 Oct 1999 22:17:49 -0700 (PDT) Original-To: ding@gnus.org In-Reply-To: Stainless Steel Rat's message of "07 Oct 1999 20:14:34 -0400" User-Agent: Gnus/5.070095 (Pterodactyl Gnus v0.95) Emacs/20.4 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:25755 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:25755 I steped through the function, and it looks like the first search for '^.\r\n' fails because point is at the end of the buffer. After sitting for 3 seconds (accept-process-output) and conditionally sleeping, there's a (goto-char start) and the search succeeds. I put a (goto-char start) before the while, and performance has improved dramatically. This makes sense to me, but I'm not strong in elisp coding - is this the right fix? -Dave ... (save-excursion (set-buffer (process-buffer process)) (goto-char start) (while (not (re-search-forward "^\\.\r\n" nil t)) ...