From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: default large-file-warning-threshold Date: Mon, 01 Dec 2014 10:13:57 -0800 Organization: UCLA Computer Science Department Message-ID: <547CAFE5.6080404@cs.ucla.edu> References: <21606.10799.112099.788101@a1i15.kph.uni-mainz.de> <1753218.Ot8JCqssfN@descartes> <546AABCF.8030705@cs.ucla.edu> <9xioico2nm.fsf@fencepost.gnu.org> <83k32s9zm5.fsf@gnu.org> <547A4A1B.9060807@cs.ucla.edu> <20141130101201.3a2625e6@forcix> <547B4285.8070901@cs.ucla.edu> <83wq6c8s47.fsf@gnu.org> <547B9127.2080508@cs.ucla.edu> <878uismg2o.fsf@wanadoo.es> <874mtgmfiu.fsf@wanadoo.es> <547C00BE.5050506@cs.ucla.edu> <83egsj8j0i.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1417457672 2108 80.91.229.3 (1 Dec 2014 18:14:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Dec 2014 18:14:32 +0000 (UTC) Cc: ofv@wanadoo.es, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 01 19:14:26 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 1XvVUP-0004ml-9R for ged-emacs-devel@m.gmane.org; Mon, 01 Dec 2014 19:14:25 +0100 Original-Received: from localhost ([::1]:33109 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvVUO-0001zD-NM for ged-emacs-devel@m.gmane.org; Mon, 01 Dec 2014 13:14:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53370) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvVUG-0001yc-GQ for emacs-devel@gnu.org; Mon, 01 Dec 2014 13:14:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XvVUA-0004x8-Jn for emacs-devel@gnu.org; Mon, 01 Dec 2014 13:14:16 -0500 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:35558) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvVU4-0004vk-1y; Mon, 01 Dec 2014 13:14:04 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id ECFA9A6003B; Mon, 1 Dec 2014 10:14:02 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lYpoLQg1IXUm; Mon, 1 Dec 2014 10:13:58 -0800 (PST) Original-Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 121D7A6003A; Mon, 1 Dec 2014 10:13:58 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 In-Reply-To: <83egsj8j0i.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 131.179.128.62 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:178612 Archived-At: On 12/01/2014 07:52 AM, Eli Zaretskii wrote: > I doubt that the speed of decoding could be significantly increased. We don't need to increase decoding speed to make Emacs perform much better on large files. When I first visit a file, all I need to see is the start of the file on my screen. Emacs needs only to decode the initial part of the file to do that. It can decode the rest of the file as I'm looking at the first part. Although this sort of thing would be a nontrivial change to Emacs, it's doable and it would already be done if performance on large files were a priority for Emacs developers. I'm not the only one to run into this problem; see the thread "Intelligently opening large files in emacs" in this mailing list earlier this year. There, the proposed solution was to use find-file-literally for files larger than a certain size. Perhaps Emacs should do this by default -- it'd be a nicer user experience in many ways than what we have now, and it should be easy to implement.