From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.help Subject: Re: Is X'ABCD' notation of general interest? Date: Mon, 13 Apr 2009 16:12:47 +0200 Message-ID: <87ab6klk0w.fsf@ambire.localdomain> References: <4e8b531d-ecc7-4b71-ac69-faa82eccd4ae@c9g2000yqm.googlegroups.com> <45202d31-fd33-4b35-9bb7-fe4af6eb4012@c9g2000yqm.googlegroups.com> <8763hajdse.fsf@ambire.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1239633131 2308 80.91.229.12 (13 Apr 2009 14:32:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Apr 2009 14:32:11 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, florian To: Nikolaj Schumacher Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 13 16:33:28 2009 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 1LtNDz-0001jz-CK for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Apr 2009 16:33:27 +0200 Original-Received: from localhost ([127.0.0.1]:37038 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LtNCa-0000Sm-Oz for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Apr 2009 10:32:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LtMyY-0002WX-TO for help-gnu-emacs@gnu.org; Mon, 13 Apr 2009 10:17:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LtMyV-0002T9-Tr for help-gnu-emacs@gnu.org; Mon, 13 Apr 2009 10:17:29 -0400 Original-Received: from [199.232.76.173] (port=50902 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LtMyV-0002So-Kg for help-gnu-emacs@gnu.org; Mon, 13 Apr 2009 10:17:27 -0400 Original-Received: from smtp-out113.alice.it ([85.37.17.113]:3196) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LtMyU-00042B-EB for help-gnu-emacs@gnu.org; Mon, 13 Apr 2009 10:17:26 -0400 Original-Received: from FBCMMO03.fbc.local ([192.168.68.197]) by smtp-out113.alice.it with Microsoft SMTPSVC(6.0.3790.3959); Mon, 13 Apr 2009 16:17:23 +0200 Original-Received: from FBCMCL01B03.fbc.local ([192.168.69.84]) by FBCMMO03.fbc.local with Microsoft SMTPSVC(6.0.3790.1830); Mon, 13 Apr 2009 16:17:23 +0200 Original-Received: from ambire.localdomain ([79.21.70.147]) by FBCMCL01B03.fbc.local with Microsoft SMTPSVC(6.0.3790.3959); Mon, 13 Apr 2009 16:17:23 +0200 Original-Received: from ttn by ambire.localdomain with local (Exim 4.63) (envelope-from ) id 1LtMtz-0002vz-SJ; Mon, 13 Apr 2009 16:12:47 +0200 In-Reply-To: (Nikolaj Schumacher's message of "Sun, 12 Apr 2009 23:25:58 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-OriginalArrivalTime: 13 Apr 2009 14:17:24.0045 (UTC) FILETIME=[90D40FD0:01C9BC42] X-detected-operating-system: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ 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:63706 Archived-At: () Nikolaj Schumacher () Sun, 12 Apr 2009 23:25:58 +0200 If you try to micro-optimize, you really should do some benchmarking... ;) `string-to-number' is a C function. It is nearly impossible to write anything faster in Lisp. On my system `string-to-number' is more than 10x faster than your function. Cool. thi