all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Karl Chen <quarl@cs.berkeley.edu>
Subject: put-text-property slowness
Date: Wed, 22 Mar 2006 21:26:46 -0800	[thread overview]
Message-ID: <quack.20060322T2126.lthbqvxg295@roar.cs.berkeley.edu> (raw)


When font-lock-support-mode is nil, dired with dired+ takes way
too long on large directories: on the order of many minutes; if I
set font-lock-support-mode to 'jit-lock-mode, then it takes less
than half a second.

So there's an easy workaround but it wasn't easy to find.  From
casual profiling, the issue seems to be the thousands of
`put-text-property' calls in `insert-directory'.

Steps to reproduce:

wget http://www.emacswiki.org/cgi-bin/wiki/dired+.el/download/dired+.el

[add directory containing dired+.el to load-path]

emacs -q

(require 'dired+)
(setq font-lock-support-mode nil)
(dired "/usr/bin")


-- 
Karl 2006-03-22 20:03

             reply	other threads:[~2006-03-23  5:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-23  5:26 Karl Chen [this message]
2006-03-27 18:39 ` put-text-property slowness Drew Adams
2006-03-27 23:56   ` Karl Chen
2006-03-28  6:34     ` Romain Francoise
2006-03-28 10:08       ` Karl Chen
2006-03-28 10:34         ` Romain Francoise

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=quack.20060322T2126.lthbqvxg295@roar.cs.berkeley.edu \
    --to=quarl@cs.berkeley.edu \
    /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.