From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: hexl-find-file is sloooow Date: Tue, 21 Dec 2004 14:18:40 +0100 Message-ID: References: <20041221.081752.05872292.wl@gnu.org> <20041221.175009.221966310.jet@gyve.org> <20041221.204709.15226525.jet@gyve.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1103635320 15521 80.91.229.6 (21 Dec 2004 13:22:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 21 Dec 2004 13:22:00 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 21 14:21:50 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CgjxV-0002rd-00 for ; Tue, 21 Dec 2004 14:21:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cgk80-0002W4-Gl for ged-emacs-devel@m.gmane.org; Tue, 21 Dec 2004 08:32:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Cgk7L-0002NN-26 for emacs-devel@gnu.org; Tue, 21 Dec 2004 08:31:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Cgk7I-0002LO-JJ for emacs-devel@gnu.org; Tue, 21 Dec 2004 08:31:56 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cgk7I-0002JS-8Q for emacs-devel@gnu.org; Tue, 21 Dec 2004 08:31:56 -0500 Original-Received: from [212.88.64.25] (helo=mail-relay.sonofon.dk) by monty-python.gnu.org with smtp (Exim 4.34) id 1Cgjtp-0004bP-Iv for emacs-devel@gnu.org; Tue, 21 Dec 2004 08:18:02 -0500 Original-Received: (qmail 64245 invoked from network); 21 Dec 2004 13:18:00 -0000 Original-Received: from unknown (HELO kfs-l.imdomain.dk.cua.dk) (213.83.150.2) by 0 with SMTP; 21 Dec 2004 13:18:00 -0000 Original-To: Masatake YAMATO In-Reply-To: <20041221.204709.15226525.jet@gyve.org> (Masatake YAMATO's message of "Tue, 21 Dec 2004 20:47:09 +0900 (JST)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) 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: main.gmane.org gmane.emacs.devel:31307 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:31307 Masatake YAMATO writes: >> Maybe it could be turned off for large files? >> Or it could at least ask for confirmation to fontify a large buffer. > > Thank you for your suggestion. > Before implementing your idea, I'd like to try my idea. But as a minimum, you could skip fontification if font-lock-mode is not enabled in the buffer. > I think it is possible to do the same thing without `re-search-forward'. > If `re-search-forward' takes longer time than `put-text-property', > the fontification code will be faster with my idea. But still (a lot) slower than without fontification. I can easily distinguish fixed column output without extra decoration, so if fontification takes more than 1-2 seconds, the benefit is too marginal to justify the slowdown. -- Kim F. Storm http://www.cua.dk