From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Florian Beck Newsgroups: gmane.emacs.help Subject: Re: Problem with position and find (cl) Date: Sat, 21 Jun 2008 01:14:24 +0200 Organization: T-Online Message-ID: <87abhfg0mn.fsf@sophokles.streitblatt.de> References: <6c2bb4F3dibi5U1@mid.individual.net> <6c2gf4F3eltftU1@mid.individual.net> <87hcbng8z6.fsf@sophokles.streitblatt.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1214005265 12927 80.91.229.12 (20 Jun 2008 23:41:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Jun 2008 23:41:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 21 01:41:49 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K9qEk-0005uY-Jd for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Jun 2008 01:41:46 +0200 Original-Received: from localhost ([127.0.0.1]:34872 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K9qDv-0003NO-HS for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Jun 2008 19:40:55 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!news.glorb.com!feeder.erje.net!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-X-Trace: news.t-online.com 1214003664 02 28379 ZMukOpGrGgRdL9v 080620 23:14:24 Original-X-Complaints-To: usenet-abuse@t-online.de X-ID: Vg10JmZL8ejWN19t2Y1h3pWqqswu8olUVQrd4NfWZwl7nxnL44x3r1 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:VGLe34i3PbcJK0aPujAPm5ujpMk= Original-Xref: news.stanford.edu gnu.emacs.help:159650 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:55000 Archived-At: Thierry Volpiatto writes: > position default test is 'eq, try 'equal Indeed, many cl-tests default to 'eq. BTW, what is the reason for this (apart from being a language convention)? When I try (let ((start-time (current-time))) (dotimes (i 1000000) (position '(1) '((2) (5) (2) 2 x 4 fer fer f r e wqf (1) fr r) :test 'eq)) (format-time-string "%S" (time-since start-time))) with 'eq and 'equal I get the same result. So 'eq is not more efficent, is it? -- Florian Beck