From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/54985 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.gnus.general Subject: Re: Using CL in Gnus Date: Sat, 29 Nov 2003 10:10:47 +0100 Sender: ding-owner@lists.math.uh.edu Message-ID: References: <87oev1uyzw.fsf@zip.com.au> <87k75oktn7.fsf@zip.com.au> <87ptfblhxp.fsf@tc-1-100.kawasaki.gol.ne.jp> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1070097193 5102 80.91.224.253 (29 Nov 2003 09:13:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 29 Nov 2003 09:13:13 +0000 (UTC) Original-X-From: ding-owner+M3526@lists.math.uh.edu Sat Nov 29 10:13:09 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AQ1A5-00038w-00 for ; Sat, 29 Nov 2003 10:13:09 +0100 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 1AQ19k-0006nm-00; Sat, 29 Nov 2003 03:12:48 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1AQ19P-0006nS-00 for ding@lists.math.uh.edu; Sat, 29 Nov 2003 03:12:27 -0600 Original-Received: from pfepc.post.tele.dk (pfepc.post.tele.dk [193.162.153.4]) by justine.libertine.org (Postfix) with ESMTP id AF5A63A0036 for ; Sat, 29 Nov 2003 03:12:27 -0600 (CST) Original-Received: from [195.249.83.118] (0xc3f95376.esnxr2.ras.tele.dk [195.249.83.118]) by pfepc.post.tele.dk (Postfix) with ESMTP id 18515262951 for ; Sat, 29 Nov 2003 10:12:26 +0100 (CET) Original-To: ding@gnus.org Mail-Followup-To: ding@gnus.org In-Reply-To: <87ptfblhxp.fsf@tc-1-100.kawasaki.gol.ne.jp> (Miles Bader's message of "29 Nov 2003 17:04:02 +0900") 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:54985 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:54985 Miles Bader writes: > Jesper Harder writes: > >> But in a lot of places the list isn't copied first. In that case >> -- and if speed matters -- `dolist' would degrade performance and >> consing slightly. > > Huh? dolist doesn't copy the list... dolist establishes a let-binding for the list, which is often unnecessary. E.g. (defun foo (list) (let (x) (while (setq x (pop list)) ...))) vs. (defun bar (list) (let ((temp list) x) (while temp (setq x (car temp)) (setq temp (cdr temp)) ...))