From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Herbert Euler" Newsgroups: gmane.emacs.help Subject: Re: Accelerating Emacs? Date: Fri, 28 Oct 2005 13:53:08 +0800 Message-ID: References: <1130468370.055490.193020@z14g2000cwz.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: sea.gmane.org 1130479969 24095 80.91.229.2 (28 Oct 2005 06:12:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 28 Oct 2005 06:12:49 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 28 08:12:45 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EVNTl-0000BG-Bq for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Oct 2005 08:12:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EVNTk-0006bU-5S for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Oct 2005 02:12:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EVNAw-00052I-6i for help-gnu-emacs@gnu.org; Fri, 28 Oct 2005 01:53:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EVNAt-0004y4-1p for Help-gnu-emacs@gnu.org; Fri, 28 Oct 2005 01:53:12 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EVNAs-0004wj-AG for Help-gnu-emacs@gnu.org; Fri, 28 Oct 2005 01:53:10 -0400 Original-Received: from [64.4.26.27] (helo=hotmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EVNAs-0000Lq-By for Help-gnu-emacs@gnu.org; Fri, 28 Oct 2005 01:53:10 -0400 Original-Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 27 Oct 2005 22:53:08 -0700 Original-Received: from 64.4.26.200 by by112fd.bay112.hotmail.msn.com with HTTP; Fri, 28 Oct 2005 05:53:08 GMT X-Originating-IP: [202.43.217.195] X-Originating-Email: [herberteuler@hotmail.com] X-Sender: herberteuler@hotmail.com In-Reply-To: <1130468370.055490.193020@z14g2000cwz.googlegroups.com> Original-To: Help-gnu-emacs@gnu.org X-OriginalArrivalTime: 28 Oct 2005 05:53:08.0464 (UTC) FILETIME=[DF5E8700:01C5DB83] 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:30642 Archived-At: >From: "Flying Grass" >To: help-gnu-emacs@gnu.org >Subject: Re: Accelerating Emacs? >Date: 27 Oct 2005 19:59:30 -0700 > >try fundamental-mode I tried that, but it is only effective when making small changes i.e. deleting a character. On my test on a 8612 KB size file, Emacs is not quick enough yet. The sed command sed 's/[A-Z]/0/g' test needs 17s to finish its job, and vim command :1,$:s/[A-Z]/0/g needs 1min 7s, but even 20min is still not enough for the Emacs command (in fundamental-mode) (replace-regexp "[A-Z]" "0" nil nil nil) Besides, Emacs uses about 128MB memory. And when I tried to mark all text, Emacs complains about the memory. So I think it is better of using tools such as sed and vim to edit file bigger than 5MB instead of Emacs, since Emacs is not good at this job. Regards, Guanpeng Xu _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/