From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: Pushing the `gnus-range-*' functions down into the C layer Date: Sun, 12 Sep 2010 00:36:16 +0900 Message-ID: <87d3sk1edr.fsf@uwakimon.sk.tsukuba.ac.jp> 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1284219749 8109 80.91.229.12 (11 Sep 2010 15:42:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 11 Sep 2010 15:42:29 +0000 (UTC) Cc: emacs-devel@gnu.org To: Lars Magne Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 11 17:42:28 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 1OuSDj-0000gi-W3 for ged-emacs-devel@m.gmane.org; Sat, 11 Sep 2010 17:42:28 +0200 Original-Received: from localhost ([127.0.0.1]:37701 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OuSDj-0004MW-FM for ged-emacs-devel@m.gmane.org; Sat, 11 Sep 2010 11:42:27 -0400 Original-Received: from [140.186.70.92] (port=57727 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OuSDb-0004MG-MY for emacs-devel@gnu.org; Sat, 11 Sep 2010 11:42:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OuSDa-0006vU-G9 for emacs-devel@gnu.org; Sat, 11 Sep 2010 11:42:19 -0400 Original-Received: from imss12.cc.tsukuba.ac.jp ([130.158.254.161]:38087) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OuSDa-0006v4-3K for emacs-devel@gnu.org; Sat, 11 Sep 2010 11:42:18 -0400 Original-Received: from imss12.cc.tsukuba.ac.jp (imss12.cc.tsukuba.ac.jp [127.0.0.1]) by postfix.imss70 (Postfix) with ESMTP id DF718F4003; Sun, 12 Sep 2010 00:42:14 +0900 (JST) Original-Received: from mgmt1.sk.tsukuba.ac.jp (unknown [130.158.97.223]) by imss12.cc.tsukuba.ac.jp (Postfix) with ESMTP id D0EF7F4002; Sun, 12 Sep 2010 00:42:14 +0900 (JST) Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mgmt1.sk.tsukuba.ac.jp (Postfix) with ESMTP id CEB2E3FA0479; Sun, 12 Sep 2010 00:42:14 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 95AFB1A266F; Sun, 12 Sep 2010 00:36:16 +0900 (JST) In-Reply-To: X-Mailer: VM undefined under 21.5 (beta29) "garbanzo" ed3b274cc037 XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:129985 Archived-At: Lars Magne Ingebrigtsen writes: > Stefan Monnier writes: > > >> Well, that's the case in Common Lisp, but it needn't be in Emacs > >> Lisp. `eq' could just use `=' as the comparison function for > >> bignums. Even though that would be a non-traditional way of > >> doing it. > > > > You're basically suggesting to replace `eq' with `eql', which has > > non-trivial performance implications. > > Well, only for the new bignum type. 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. FWIW nobody has complained that for bignums (= x y) doesn't imply (eq x y) in XEmacs. You might want to ask the SXEmacs people what their experience is.