From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: newline cache Date: Wed, 23 Apr 2014 20:33:10 -0400 Message-ID: References: <837g6id3mi.fsf@gnu.org> <838uqxb6o6.fsf@gnu.org> <837g6g9iip.fsf@gnu.org> Reply-To: rms@gnu.org NNTP-Posting-Host: plane.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1398299601 13464 80.91.229.3 (24 Apr 2014 00:33:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Apr 2014 00:33:21 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 24 02:33:16 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Wd7bH-0000KY-Ph for ged-emacs-devel@m.gmane.org; Thu, 24 Apr 2014 02:33:15 +0200 Original-Received: from localhost ([::1]:35256 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wd7bH-0006Kr-C0 for ged-emacs-devel@m.gmane.org; Wed, 23 Apr 2014 20:33:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34659) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wd7bD-0006KZ-TE for emacs-devel@gnu.org; Wed, 23 Apr 2014 20:33:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wd7bD-0008UB-3R for emacs-devel@gnu.org; Wed, 23 Apr 2014 20:33:11 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54773) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wd7bD-0008U7-0U for emacs-devel@gnu.org; Wed, 23 Apr 2014 20:33:11 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Wd7bC-0000CQ-Fr; Wed, 23 Apr 2014 20:33:10 -0400 In-reply-to: <837g6g9iip.fsf@gnu.org> (message from Eli Zaretskii on Wed, 23 Apr 2014 18:23:42 +0300) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:171613 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] I suggest to try it; you might be surprised. I tried it on a 7MB mbox file, and didn't see any significant slowdown. The reason is simple: the mbox buffer is almost always narrowed, and find_newline, which is the workhorse of the function I wrote, and also the main suspect, only looks within the restriction. Well, I could arrange to narrow to the current message before running the test. Maybe that will do enough. -- Dr Richard Stallman President, Free Software Foundation 51 Franklin St Boston MA 02110 USA www.fsf.org www.gnu.org Skype: No way! That's nonfree (freedom-denying) software. Use Ekiga or an ordinary phone call.