Gnus development mailing list
 help / color / mirror / Atom feed
From: Dave Liebreich <pixiebob@bigfoot.com>
Subject: Re: pop3 *very* slow?
Date: Thu, 07 Oct 1999 22:17:49 -0700	[thread overview]
Message-ID: <199910080517.WAA12482@oberon.dnai.com> (raw)
In-Reply-To: Stainless Steel Rat's message of "07 Oct 1999 20:14:34 -0400"

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))
...



  parent reply	other threads:[~1999-10-08  5:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-10-07 21:54 Dave Liebreich
1999-10-08  0:14 ` Stainless Steel Rat
1999-10-08  2:11   ` Dave Liebreich
1999-10-08  5:17   ` Dave Liebreich [this message]
1999-10-08 23:24     ` Stainless Steel Rat
1999-10-08 20:31   ` Greg Stark
1999-10-08 23:26     ` Stainless Steel Rat

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199910080517.WAA12482@oberon.dnai.com \
    --to=pixiebob@bigfoot.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).