Darryl Okahata <darrylo(a)sr.hp.com> writes:
Hrvoje Niksic <hniksic(a)srce.hr> wrote:
> > Note, however, that dired in XEmacs is pretty inefficient. With
> > the current dired, most of the time is spent doing an
"indent-region"
> > (and not obtaining the actual directory contents).
>
> No, it's not. We've already been over this. Please rebuild your
> XEmacs without error checking and you should get a massive speed
> increase in dired.
I haven't tried this, but I guess I have to. ;-)
Please, please do. For me, the error-checkingless rebuild blasted
`indent-region' totally out of the profile trace.
At the time, I spent an hour tracing the `indent-region' slowness by
various unholy means (including but not limited to rewriting several
`indent.el' functions to C), and finally traced it to the code that
simply inserts the characters into the buffer. The reason why this
code was slow was that, when building with ERROR_CHECK_EXTENTS,
adjusting the extents appears to cause sledgehammer extent checks,
which grind things to a halt.
For this reason, the profiling code now prints a message that warns
you of likely nonsensical result with error-checking builds. The
worst thing is: not only are the results nonsensical, but they get you
on the totally wrong track!
It's only fortunate that you listened to your intuition rather than
the profiler output, and wrote the dired-in-C simulation for Windows.
> > To speed things up, try applying the appended patch to
dired.el (I
> > just submitted this to the dired folks).
>
> That patch created problems in the past.
I think you're confusing my patch with someone else's.
Quite possible, sorry.
--
Hrvoje Niksic <hniksic(a)srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
I luv the smell of nature in the morning. Smells like manure!