From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/53426 Path: main.gmane.org!not-for-mail From: Gaute B Strokkenes Newsgroups: gmane.emacs.gnus.general Subject: Re: Funny-looking code in imap.el Date: Mon, 14 Jul 2003 09:21:57 +0100 Organization: The Church of Emacs Sender: ding-owner@lists.math.uh.edu Message-ID: <87wuelsel6.fsf@cam.ac.uk> References: <87znjhsw0d.fsf@cam.ac.uk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1058170952 12705 80.91.224.249 (14 Jul 2003 08:22:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 14 Jul 2003 08:22:32 +0000 (UTC) Original-X-From: ding-owner+M1970@lists.math.uh.edu Mon Jul 14 10:22:30 2003 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 19bybO-0003Ic-00 for ; Mon, 14 Jul 2003 10:22:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19byc6-0005mM-00; Mon, 14 Jul 2003 03:23:14 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19byby-0005mG-00 for ding@lists.math.uh.edu; Mon, 14 Jul 2003 03:23:06 -0500 Original-Received: (qmail 23332 invoked by alias); 14 Jul 2003 08:23:06 -0000 Original-Received: (qmail 23327 invoked from network); 14 Jul 2003 08:23:06 -0000 Original-Received: from mta07-svc.ntlworld.com (62.253.162.47) by sclp3.sclp.com with SMTP; 14 Jul 2003 08:23:06 -0000 Original-Received: from belldandy ([81.100.93.186]) by mta07-svc.ntlworld.com (InterMail vM.4.01.03.37 201-229-121-137-20020806) with ESMTP id <20030714082305.QUPA18592.mta07-svc.ntlworld.com@belldandy> for ; Mon, 14 Jul 2003 09:23:05 +0100 Original-Received: from gs234 by belldandy with local (Exim 3.36 #1 (Debian)) id 19byar-0003PE-00 for ; Mon, 14 Jul 2003 09:21:57 +0100 Mail-Copies-To: never Original-To: ding@gnus.org Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAG1BMVEWWWBTly7aGMwb+/vz9 +ffIilb///+yaCxNCwHGVC3gAAACU0lEQVR4nF2TQWvjMBBGVUGwj3WxaY/aAWNfi0zuwZPuHp0Q ob079OwYjHrsChb0s3dGctJ0ddTzm9F8lsR7WiNiWWL/flviul9Uh0NR4vY/gJUxJjOEtt/AubBy UsotRfH2DbxWE0hom3w5XJUEKis9hACt2hR4B86VDOtqTNHfgeEGvLiUN7Ddze26Dx6y1CUa+ygo NwFQm0N/BeMzCZAtNIoQrd9EhcH5mWpnztB8ZpJBlH23jaAbuE4EhZ2Bam0TeJ0DRMCKVP6CegWk q4z2TVFUx0946FOPcSe9ELE3rSHAj15rBuddS0C4BGyAutfpVAQkKdZOQiwMMIHxlUDrgeej5Ns7 I/ccSWNBLda1XwYBEG1Qswy1yXJf879nA4cjkNI0H+FzoUyuRodPA5eqZwFONG34i30ccOxeKFUy flNe1szqsgLdvXwKCj6zjTXODHV9M46gZPCLlYKCGTYO8S0aOAvJzRfD0w+1XcGIsxLUw/sYl5sM 9n0yjkoSUDOByrijwRRiAq13NhqLJYB3ACazrgN2bIwanyJQKXhHAJPRPQruEaCJP2Shy4DJ2As+ FQjJZH7AZIy6w0pQiiRYAh8nTEZHYDfRqSDeB5OXq4EEcAC4NocvoBl4+n1cyl54nyLRNA3iIwRP wNGFOK1g1Gz8jNfaCjdtqJLm2LXuqMc+50cDIJQpr6X0OHa4X58ULAw03QbRd7GUiG/K04mj0bNB xQhwJkEsJiZ1Bbgb6CnF79cBE+jwF91qniOCP3fghUFKxOShjIATw/wOfIQTg39LpFHtxhlKywAA AABJRU5ErkJggg== In-Reply-To: (Simon Josefsson's message of "Mon, 14 Jul 2003 09:45:09 +0200") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:53426 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:53426 On 14 jul 2003, jas@extundo.com wrote: > Gaute B Strokkenes writes: > > Is it the sit-for that delay things? Yes, that seems to be a big part of it. Note that I haven't found a good way to test the speed "scientifically"; this is based purely on my eyeballing things. > Try removing it. That seems to work fine. Another thing that works is to hit some harmless key, like `s', right after `g'. This works because sif-for will not actually sit if there is pending input. > Perhaps changing the a-p-o call to (accept-process-output process > 0.1) would speed things up too. Perhaps, though I doubt it. If I understand it correctly, the time argument to a-p-o is just a timeout; it will return as soon as it gets some output from the process or when the timeout expires, whichever comes first. I suspect it would work just as well to use a really big value here; the only reason to have a timeout at all seems to be to avoid busy-looping. -- Gaute Strokkenes http://www.srcf.ucam.org/~gs234/ I have nostalgia for the late Sixties! In 1969 I left my laundry with a hippie!! During an unauthorized Tupperware party it was chopped & diced!