From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12868 invoked from network); 22 Jan 2007 16:07:04 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.7 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 22 Jan 2007 16:07:04 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 25443 invoked from network); 22 Jan 2007 16:06:59 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 22 Jan 2007 16:06:59 -0000 Received: (qmail 23289 invoked by alias); 22 Jan 2007 16:06:54 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23121 Received: (qmail 23279 invoked from network); 22 Jan 2007 16:06:53 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 22 Jan 2007 16:06:53 -0000 Received: (qmail 25009 invoked from network); 22 Jan 2007 16:06:53 -0000 Received: from cluster-d.mailcontrol.com (217.69.20.190) by a.mx.sunsite.dk with SMTP; 22 Jan 2007 16:06:46 -0000 Received: from cameurexb01.EUROPE.ROOT.PRI ([62.189.241.200]) by rly19d.srv.mailcontrol.com (MailControl) with ESMTP id l0MG6ZjD013819 for ; Mon, 22 Jan 2007 16:06:39 GMT Received: from news01.csr.com ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.1830); Mon, 22 Jan 2007 16:06:35 +0000 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.13.8/8.13.4) with ESMTP id l0MG6Wbb021577 for ; Mon, 22 Jan 2007 16:06:32 GMT Received: from csr.com (pws@localhost) by news01.csr.com (8.13.8/8.13.8/Submit) with ESMTP id l0MG6V60021574 for ; Mon, 22 Jan 2007 16:06:32 GMT Message-Id: <200701221606.l0MG6V60021574@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-workers@sunsite.dk Subject: Re: PATCH: more sorting: multibyte case-insensitivity In-reply-to: <070122075835.ZM10252@torch.brasslantern.com> References: <200701221423.l0MENUlQ020518@news01.csr.com> <070122075835.ZM10252@torch.brasslantern.com> Comments: In-reply-to Bart Schaefer message dated "Mon, 22 Jan 2007 07:58:35 -0800." Date: Mon, 22 Jan 2007 16:06:31 +0000 From: Peter Stephenson X-OriginalArrivalTime: 22 Jan 2007 16:06:35.0749 (UTC) FILETIME=[4A85C150:01C73E3F] Content-Type: text/plain MIME-Version: 1.0 X-Scanned-By: MailControl A-06-00-00 (www.mailcontrol.com) on 10.68.0.129 Bart Schaefer wrote: > On Jan 22, 2:23pm, Peter Stephenson wrote: > } > } This extends the new sort code to handle lowering of case properly with > } multibyte characters. > > I'm beginning to worry that we're piling up some pretty severe performance > penalties with this stuff. Zsh was already about 1/3 the speed of bash on > some benchmarks, as I recall. Has anyone lately compared a recent CVS > build to something a bit older? "unsetopt MULTIBYTE" is supposed to get you pretty much back to where we were before if you don't care about multibyte characters. I'm not aware of a general solution to the efficiency problem with proper multibyte handling. In this particular case, it should be more efficient than before, at least with a long list to sort, since now the strings are transformed once each instead of every time two strings are compared. I haven't done any benchmarking. At the moment I'm happy if it works. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php To get further information regarding CSR, please visit our Investor Relations page at http://ir.csr.com/csr/about/overview