From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Pushing the `gnus-range-*' functions down into the C layer Date: Sat, 11 Sep 2010 17:51:16 +0200 Organization: Programmerer Ingebrigtsen Message-ID: References: <8739ti68sz.fsf@lifelogs.com> <87pqwm1dsl.fsf@uwakimon.sk.tsukuba.ac.jp> <87iq2d4sd5.fsf@lifelogs.com> <8762yd4r7j.fsf@lifelogs.com> <8762ydr5br.fsf@lola.goethe.zz> <87d3sk1edr.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1284220377 10283 80.91.229.12 (11 Sep 2010 15:52:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 11 Sep 2010 15:52:57 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 11 17:52:56 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OuSNq-0004IJ-Ao for ged-emacs-devel@m.gmane.org; Sat, 11 Sep 2010 17:52:54 +0200 Original-Received: from localhost ([127.0.0.1]:53838 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OuSNp-00087m-OQ for ged-emacs-devel@m.gmane.org; Sat, 11 Sep 2010 11:52:53 -0400 Original-Received: from [140.186.70.92] (port=50598 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OuSMd-0007Ij-3C for emacs-devel@gnu.org; Sat, 11 Sep 2010 11:51:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OuSMR-0008AI-9P for emacs-devel@gnu.org; Sat, 11 Sep 2010 11:51:38 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:50398) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OuSMQ-00089Y-Vs for emacs-devel@gnu.org; Sat, 11 Sep 2010 11:51:27 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OuSMN-0003mm-Nj for emacs-devel@gnu.org; Sat, 11 Sep 2010 17:51:23 +0200 Original-Received: from cm-84.215.34.171.getinternet.no ([84.215.34.171]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 11 Sep 2010 17:51:23 +0200 Original-Received: from larsi by cm-84.215.34.171.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 11 Sep 2010 17:51:23 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 24 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.34.171.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEVJYXwYIDB5nL2QsdD+ /vPG1N0CAQUpPVgEAwjx8eZPfx4eAAACNklEQVQ4ja3TQW/aMBQHcGM2hd7sIhSOjlMp2g3Fi3ad NHLgOA2ryrEXK8c4PZjdmkqjPm4rkZZvu/cSQmnZcU8RoPfj72cnQLquO6zHatuug7cNNMl5H0Br BLhI/5Wxnp/19pQ4CwwJaG82byDXrc432IKl1ueltc41LvcWikx/+Zb9AzCRb7cXu1q3eVtsDjiW wJE63XVwtKLrCg2vBbTaA9FSF5naPqs2O+SHAnbVZXlXFCQS7OoxuPn9EEU3v7aLZBJFQZDNK/JV s6uFWG9+JJ/f/QEI+CS/dYv35KeL+XeAxa39+KuaMBIlNskWH8hZSUKmmT4WcS8Fn+cqpUqlsVKv wc6hq/p6k7hXY10s9b/ADrC6AI67kv3GXoHl12LCyeU5EMKAYSK9AGdZ3A/n3PLQOY7CMWHDWMaQ 8H7pj+W8v15xHqoBGgBT7gHsAAxXOsLeMxI4t/SP4gz6ZeZSplRKKtwJoPbG3ysAMUB8Aii831Ke QMoB9gApPFsAGyLEI5T3KmhcDdCEOCMdwUxXoa8spUnjMDGCL6fJzHNf0eT6U3WcUWK/nLrQ8yUA xxlyHG5KuvQzt3uqhQvIAHtMGENn5iGwAU1YwuIUwRhoY+Kpsj6koloxiRFiStgTJHiz4/6JJtXq ONw0O+gbOWkM4xUNKlLDTccZLOwhmpXc0wH6GXvmehC7O+ckgKiHXZk7XKqUUrCKAtSiVgP0dSfx 1sJFXqDsnwf8GCr471BRBzXOln8BZ01W4dONUMYAAAAASUVORK5CYII= Mail-Copies-To: never X-Now-Playing: Eric Dolphy's _Out to Lunch_: "Straight Up and Down" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:ouI1yq5/myPFcfJX7oOXt6/AsHU= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:129991 Archived-At: "Stephen J. Turnbull" writes: > No, for all types. First you have to check whether something is a > bignum, then if not you do a bit-pattern comparison. Worst case this > could double the cost of doing EQ(x,y) in C, and in Lisp `eq' will > cost a perceptible amount more. Right. Is EQ in C just implemented as a memory check, and absolutely nothing else? It doesn't touch the data at all in any way? *etag around a bit* #define EQ(x, y) (XHASH (x) == XHASH (y)) which is /* Return a perfect hash of the Lisp_Object representation. */ #define XHASH(a) (a) So, yeah, stupid idea. Never mind. -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen