From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: grischka Newsgroups: gmane.emacs.devel Subject: Re: Case mapping of sharp s Date: Sat, 21 Nov 2009 04:08:42 +0100 Message-ID: <4B0759BA.2010303@gmx.de> References: <4B05A11F.5000700@gmx.de> <4B05D3EE.2000101@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1258772985 24902 80.91.229.12 (21 Nov 2009 03:09:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 21 Nov 2009 03:09:45 +0000 (UTC) Cc: emacs-devel@gnu.org, handa@m17n.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 21 04:09:38 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NBgLy-0005Ah-1e for ged-emacs-devel@m.gmane.org; Sat, 21 Nov 2009 04:09:38 +0100 Original-Received: from localhost ([127.0.0.1]:35160 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NBgLx-0001tt-4n for ged-emacs-devel@m.gmane.org; Fri, 20 Nov 2009 22:09:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NBgLq-0001tg-9s for emacs-devel@gnu.org; Fri, 20 Nov 2009 22:09:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NBgLl-0001tE-Si for emacs-devel@gnu.org; Fri, 20 Nov 2009 22:09:29 -0500 Original-Received: from [199.232.76.173] (port=51203 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NBgLl-0001tB-N8 for emacs-devel@gnu.org; Fri, 20 Nov 2009 22:09:25 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]:42150) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1NBgLl-00006p-5c for emacs-devel@gnu.org; Fri, 20 Nov 2009 22:09:25 -0500 Original-Received: (qmail invoked by alias); 21 Nov 2009 03:09:21 -0000 Original-Received: from p57A09E3E.dip0.t-ipconnect.de (EHLO [192.168.1.2]) [87.160.158.62] by mail.gmx.net (mp033) with SMTP; 21 Nov 2009 04:09:21 +0100 X-Authenticated: #18588216 X-Provags-ID: V01U2FsdGVkX18UTKFI9O8UfDTAHyoYHNc2Z4LnafLiz3w8VOT6L0 iMflmk2rElS/7R User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) In-Reply-To: X-Y-GMX-Trusted: 0 X-FuHaFi: 0.76 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:117399 Archived-At: Stefan Monnier wrote: >> Also how can it happen that a C function varies between 4 and 90 >> seconds for the same action. > > I have no explanation for that. Turned out that the time of backwards simple_search depends mostly on the number of buffer markers in the buffer. That's because of CHAR_TO_BYTE in the inner loop and then because that one doesn't mind checking hundreds of markers for each single char in the file. --- grischka