[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automagic command loading

From: Marco Gerards
Subject: Re: Automagic command loading
Date: Wed, 29 Sep 2004 22:00:01 +0000
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Tomas Ebenlendr <address@hidden> writes:

> Disadvantage: current solution slowly reads the contens of directory.
> This is probably caused by opening files by /full/ path, where we
> principially have opened directory (and resolved path to it.).

Isn't it that slow because the *entire* ELF is read into memory?

> Not so disadvanyage because:
> 1.) this solution caches the contents of directory in $prefix. So it is
> slow only when inserting autocmd or after $prefix is changed. (or user
> executed cache_autocommands - now i think the caching at insert of module
> is misfeature. User can use cache_autocommands manually).

So how should it work in your opinion?  I think it should not cache
everything at startup.  It should look for "ls.mod" when you run
"ls".  If it can not be found it should try all modules until "ls" was
found.  The cache is filled automatically.

> 2.) Latency was under bochs on slow (P300) machine.
> You can always turn it off by not inserting module autocmd.

Or use another autoloader if I understand things correctly.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]