all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Relative performance of text-properties search functions
Date: Fri, 24 May 2013 21:17:24 +0300	[thread overview]
Message-ID: <837gios0nf.fsf@gnu.org> (raw)
In-Reply-To: <87mwrkb86o.fsf@gmail.com>

> From: Thorsten Jolitz <tjolitz@gmail.com>
> 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.



  reply	other threads:[~2013-05-24 18:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-23 12:16 Relative performance of text-properties search functions Thorsten Jolitz
2013-05-23 13:10 ` Stefan Monnier
2013-05-23 15:45 ` Eli Zaretskii
2013-05-24 14:10   ` Thorsten Jolitz
2013-05-24 15:27     ` Eli Zaretskii
2013-05-24 17:26       ` Thorsten Jolitz
2013-05-24 18:17         ` Eli Zaretskii [this message]
2013-05-24 18:40           ` Thorsten Jolitz
2013-05-24 19:44             ` Eli Zaretskii
2013-05-24 21:14               ` Thorsten Jolitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=837gios0nf.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.