From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/55589 Path: main.gmane.org!not-for-mail From: Per Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: Profiling Date: Sun, 04 Jan 2004 16:37:05 +0100 Organization: The Church of Emacs Sender: ding-owner@lists.math.uh.edu Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1073230659 9867 80.91.224.253 (4 Jan 2004 15:37:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 4 Jan 2004 15:37:39 +0000 (UTC) Original-X-From: ding-owner+M4129@lists.math.uh.edu Sun Jan 04 16:37:36 2004 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 1AdAJs-0001l7-00 for ; Sun, 04 Jan 2004 16:37:36 +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 1AdAJZ-0001TY-00; Sun, 04 Jan 2004 09:37:17 -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 1AdAJR-0001TS-00 for ding@lists.math.uh.edu; Sun, 04 Jan 2004 09:37:09 -0600 Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by justine.libertine.org (Postfix) with ESMTP id C0CD13A0077 for ; Sun, 4 Jan 2004 09:37:08 -0600 (CST) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AdAJP-00062p-00 for ; Sun, 04 Jan 2004 16:37:07 +0100 Mail-Followup-To: ding@gnus.org X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AdAJO-00062h-00 for ; Sun, 04 Jan 2004 16:37:06 +0100 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AdAJO-0002YK-00 for ; Sun, 04 Jan 2004 16:37:06 +0100 Original-Lines: 18 Original-X-Complaints-To: usenet@sea.gmane.org X-Face: +kRV2]2q}lixHkE{U)mY#+6]{AH=yN~S9@IFiOa@X6?GM|8MBp/ Mail-Copies-To: nobody User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:k3TiC8nDpHIcZcZclecJiEYQxcA= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:55589 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:55589 Lars Magne Ingebrigtsen writes: > What's faster -- `(memq article gnus-newsgroup-unreads)' or (the > imaginary) `(gnus-member-of-range article gnus-newsgroup-unread-range)'? > It isn't immediately obvious which one of these would win... I'm not sure it is relevant here, but rewriting some of the simplest and most commonly used functions in C may be an option. Customize first became usable fast when Hrvoje reimplemented widget-get in C. Basically, calling build-in functions is way faster than calling Emacs Lisp functions. I'm pretty sure RMS would accept including a C implementation of gnus-member-of-range if it gave a significant performance boost. Of course, you need to be sure the interface is not going to change more, before doing that.