From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: Re: Advantage using mapc over dolist Date: Mon, 02 Dec 2024 17:03:03 +0000 Message-ID: References: <87ed2qpo3o.fsf@gnu.org> <871pyqfl62.fsf@web.de> Reply-To: Heime Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36840"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 02 18:04:00 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tI9q4-0009Qm-0r for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 02 Dec 2024 18:04:00 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tI9pg-0008QO-1O; Mon, 02 Dec 2024 12:03:36 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tI9pJ-00081M-6e for help-gnu-emacs@gnu.org; Mon, 02 Dec 2024 12:03:13 -0500 Original-Received: from mail-43167.protonmail.ch ([185.70.43.167]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tI9pG-0001o9-Od for help-gnu-emacs@gnu.org; Mon, 02 Dec 2024 12:03:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1733158987; x=1733418187; bh=XcoXysFDC9yaI15yqj4bRUr5xqlhWV96I+10dJpKqIE=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector:List-Unsubscribe:List-Unsubscribe-Post; b=bh7ZVCwJLDbKqYgjI/6Yn+mqRBUA7pyjVYgMhvt3D4t5XsI+qKhOTNHzWtTWKO49u zf9ibl5+HpHSQVGm60pediHPEP5uplvjpYR1Or/hhb5ZH9NywZs2GU65co7SRGCD39 P/C10Q7D2FCU60+MwIdpe7vDtTSnDgjF11ls8HMQTCsrw0D4XUgYE7hiiYVLt0RiZ8 rqLQkNeWarvv2aJCHw9rFIcAsuiSNDZf07prRbb2hzZ6+pAkak+0bIJiFSFPQ4jAG7 zQQgIC5wmwAxFo1++oeQEXJdVrrumOX+dieacsVNEawuLmirehV0yXRzs66qwt6ReW rbMwqrXMfvVxw== In-Reply-To: <871pyqfl62.fsf@web.de> Feedback-ID: 57735886:user:proton X-Pm-Message-ID: c406a9af9be7982b38d6acadd595be67539d3723 Received-SPF: pass client-ip=185.70.43.167; envelope-from=heimeborgia@protonmail.com; helo=mail-43167.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148497 Archived-At: Sent with Proton Mail secure email. On Monday, December 2nd, 2024 at 10:12 PM, Michael Heerdegen via Users list= for the GNU Emacs text editor wrote: > Tassilo Horn tsdh@gnu.org writes: >=20 > > But it's essentially a question of preference. >=20 >=20 > Yes, that. >=20 > If execution speed is crucial, IIRC at least for byte compiled code the > `dolist' version generates significantly faster code. >=20 > Michael. Did not know that. Had thought the mapc would be faster. With dolist I can exit with (return) or catch-throw, can one do the same with mapc? For what cases is mapc useful?