From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.help Subject: Re: case-insensitive string< Date: Fri, 17 Apr 2009 12:01:15 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <86zlefdxk4.fsf@lifelogs.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1239990060 738 80.91.229.12 (17 Apr 2009 17:41:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Apr 2009 17:41:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 17 19:42:17 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 1Lus4m-0000NG-7E for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Apr 2009 19:42:08 +0200 Original-Received: from localhost ([127.0.0.1]:52160 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lus3N-0007q6-9E for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Apr 2009 13:40:41 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!newshub.sdsu.edu!feeder.erje.net!newsfeed.straub-nv.de!news.albasani.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-X-Trace: news.albasani.net /t7ZaqeuuLDIpxBwQf7HdDdoWu7FKQ1IBTFDYIFPkWCCqpgesDT/rb2x18H5KnRSlS5cdxQ2gnJpiQnZbxR7KVQhP3PaMvWsubpj5eEVB9kvUZxyDsLjjS15Z4N1oN97 Original-X-Complaints-To: abuse@albasani.net Original-NNTP-Posting-Date: Fri, 17 Apr 2009 16:56:45 +0000 (UTC) X-User-ID: EtHgNNT+5oSRypd4DYSPO1XpDoidKXWRjer6dlxqqnw= X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Cancel-Lock: sha1:vdR6ucASWMW6ynquh6wOhTb2QNw= sha1:ZmeRUJkCSY9XB3uVqdbxe/OBGOQ= User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.91 (gnu/linux) X-NNTP-Posting-Host: jluFgiZ0EV5H2ptR1qQ2u+0hD9fti1CMK4uFh2Oj4yA= Original-Xref: news.stanford.edu gnu.emacs.help:168545 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:63818 Archived-At: On Fri, 17 Apr 2009 15:40:03 +0200 Nikolaj Schumacher wrote: NS> What's the fastest way to sort a large list of strings in a NS> case-insensitive order? NS> Calling downcase on every string is rather expensive. Does anyone know NS> a better way? Perhaps you can use `sort' with a predicate that uses `compare-strings'? The latter function has a ignore-case parameter, and is implemented in C so should be quite fast. btw, BBDB has a string> macro, and subr.el has a string< alias to string-lessp, which gets a bit confusing :). Ted