From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thorsten Jolitz Newsgroups: gmane.emacs.help Subject: Re: Relative performance of text-properties search functions Date: Fri, 24 May 2013 20:40:32 +0200 Message-ID: <874ndsb4rj.fsf@gmail.com> References: <87fvxdsxg0.fsf@gmail.com> <83txltsnrq.fsf@gnu.org> <87vc68bhab.fsf@gmail.com> <83a9nks8ie.fsf@gnu.org> <87mwrkb86o.fsf@gmail.com> <837gios0nf.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1369420885 8180 80.91.229.3 (24 May 2013 18:41:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 May 2013 18:41:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 24 20:41:21 2013 Return-path: Envelope-to: geh-help-gnu-emacs@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 1UfwvU-0004aj-TL for geh-help-gnu-emacs@m.gmane.org; Fri, 24 May 2013 20:41:17 +0200 Original-Received: from localhost ([::1]:48614 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfwvU-0002qb-IK for geh-help-gnu-emacs@m.gmane.org; Fri, 24 May 2013 14:41:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45451) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ufwv8-0002qM-23 for help-gnu-emacs@gnu.org; Fri, 24 May 2013 14:41:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ufwv2-0003M4-1f for help-gnu-emacs@gnu.org; Fri, 24 May 2013 14:40:53 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:51032) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ufwv1-0003Lz-RF for help-gnu-emacs@gnu.org; Fri, 24 May 2013 14:40:47 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ufwv0-0004HI-It for help-gnu-emacs@gnu.org; Fri, 24 May 2013 20:40:46 +0200 Original-Received: from e178061221.adsl.alicedsl.de ([85.178.61.221]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 May 2013 20:40:46 +0200 Original-Received: from tjolitz by e178061221.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 May 2013 20:40:46 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 59 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: e178061221.adsl.alicedsl.de User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:fboIj/C12iqANy5I9gy+N+i7NFU= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:91031 Archived-At: Eli Zaretskii writes: >> From: Thorsten Jolitz >> Date: Fri, 24 May 2013 19:26:39 +0200 >> >> > You were talking about outline or org-mode, so how is .emacs relevant? >> >> Because my .emacs looks like this: >> >> ,---------------------------------------- >> | ;; * init.el --- my Emacs Init File >> | ;; ** Commentary >> | ;; * Prerequisites >> | ;; ** Start Message and Start Time >> | ;; ** Setup Parts >> | ;; ** Environment >> | ;; ** Loading Emacs Lisp Libraries >> | ;; ** Debugging >> | ;; * [Screen Input Keys Cmd Enter Exit] >> | ;; ** 1 (info "(emacs)Screen") >> | ;; ** 2 (info "(emacs)User Input") >> | ;; ** 3 (info "(emacs)Keys") >> | ;; ** 4 (info "(emacs)Commands") >> | ;; ** 5 (info "(emacs)Entering Emacs") >> | ;; ** 6 (info "(emacs)Exiting") >> | ;; * [Basic-Edit Minibuf M-x Help] >> | [...] >> `---------------------------------------- >> >> with outline-minor-mode and outshine.el activated. > > Which is exactly the problem I was alluding to. You may think that > when you fold the buffer text like that that Emacs has no problems > displaying that -- after all, those are just a few lines, right? But > in fact, the way Emacs display works, it must traverse the entire text > of the portion of the buffer that corresponds to those header lines, > skipping the folded text (which has the invisible text property), and > displaying the rest. Add to this replacing display properties, which > you say will have to change all the time (whatever that means), and > you might have annoyingly slow display operations, because replacing > display properties are treated specially by the display engine, and so > it constantly looks for them when it iterates over buffer text. Although my init.el has some 7000 lines and lots of headlines, the usual outline visibility and navigation commands work allright (although I actually tend to use navi-mode for navigating in such big files), there is no delay that makes using outline functionality uncomfortable. On the other hand, I already came to the conclusion that its and illusion to have overlay cookies after all headlines that are updated with every visibility change, that really takes the fun out of working with such big buffers because of the frequent delays. So its probably better to switch the cookies on when you need the info, and switch them off otherwise. -- cheers, Thorsten