From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolaj Schumacher Newsgroups: gmane.emacs.help Subject: Re: Is X'ABCD' notation of general interest? Date: Sun, 12 Apr 2009 23:25:58 +0200 Message-ID: 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 1239571603 30479 80.91.229.12 (12 Apr 2009 21:26:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 Apr 2009 21:26:43 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, florian To: Thien-Thi Nguyen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 12 23:28:01 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 1Lt7Dd-0003ed-6m for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Apr 2009 23:28:01 +0200 Original-Received: from localhost ([127.0.0.1]:57198 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lt7CD-0002wR-8H for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Apr 2009 17:26:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lt7Bk-0002wM-9w for help-gnu-emacs@gnu.org; Sun, 12 Apr 2009 17:26:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lt7Bi-0002wA-Lx for help-gnu-emacs@gnu.org; Sun, 12 Apr 2009 17:26:03 -0400 Original-Received: from [199.232.76.173] (port=49129 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lt7Bi-0002w7-Gv for help-gnu-emacs@gnu.org; Sun, 12 Apr 2009 17:26:02 -0400 Original-Received: from dd18200.kasserver.com ([85.13.138.168]:36399) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lt7Bi-0000uz-5v for help-gnu-emacs@gnu.org; Sun, 12 Apr 2009 17:26:02 -0400 Original-Received: from thursday.local (kobz-590dabaa.pool.einsundeins.de [89.13.171.170]) by dd18200.kasserver.com (Postfix) with ESMTP id E8F5E1823A6FE; Sun, 12 Apr 2009 23:26:03 +0200 (CEST) In-Reply-To: <8763hajdse.fsf@ambire.localdomain> (Thien-Thi Nguyen's message of "Sun, 12 Apr 2009 13:45:53 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (darwin) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:63700 Archived-At: Thien-Thi Nguyen wrote: > Something like the following (completely untested) code might be > faster than using `string-to-number': 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. regards, Nikolaj Schumacher