Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Compinstall, zcompile, and my .zshrc
- X-seq: zsh-workers 10619
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: Compinstall, zcompile, and my .zshrc
- Date: Mon, 10 Apr 2000 11:05:38 +0200 (MET DST)
- In-reply-to: "Bart Schaefer"'s message of Mon, 10 Apr 2000 08:54:15 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Bart Schaefer wrote:
> On Apr 10, 10:37am, Sven Wischnowsky wrote:
> }
> } Bart Schaefer wrote:
> }
> } > Second, it'd be nice if I could do something like
> } >
> } > zcompile .zshrc.zwc .zshrc .zsh/*
> }
> } As for loading functions from a zwc files it checks if the (basename
> } of the) name of the sourced file is in the zwc file. And the loads it.
> } In other words, you can use symbolic links:
> }
> } zcompile .zshrc.zwc .zshrc .zsh/*
> } for i in .zsh/*; do ln -s .zshrc.zwc ${i}.zwc; done
>
> But how clever is that? I mean, the file's still going to be read and/or
> mapped multiple times; is it really any better than compiling them all as
> separate .zwc files?
No, currently not. Hm, we could make the functions that looks if a zwc
file is already mapped check if the file is the same as one of the
files already mapped usin stat, not only comparing filenames.
When they are read using one digest file doesn't have any advantages,
though.
Bye
Sven
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author