unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
Subject: RE: put-text-property slowness
Date: Mon, 27 Mar 2006 10:39:07 -0800	[thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICEECADEAA.drew.adams@oracle.com> (raw)
In-Reply-To: <quack.20060322T2126.lthbqvxg295@roar.cs.berkeley.edu>

    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")

Thanks for the report. I'll look into this.

BTW, dired+ is not part of standard Emacs, so this is the wrong place to
post bugs about it. Please post dired+ bugs here:
http://www.emacswiki.org/cgi-bin/wiki/DiredPlus, or email me directly.
Thanks.

  reply	other threads:[~2006-03-27 18:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-23  5:26 put-text-property slowness Karl Chen
2006-03-27 18:39 ` Drew Adams [this message]
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=DNEMKBNJBGPAOPIJOOICEECADEAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).