Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] use .zwc files with identical timestamps
- X-seq: zsh-workers 42424
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: [PATCH] use .zwc files with identical timestamps
- Date: Mon, 05 Mar 2018 09:32:31 +0000
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180305093235euoutp0123829585bc910b5cb9585a24c78ad1e7~Y-F4Q8_-C0973209732euoutp015
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1520242355; bh=H+WFWzYgML6UENariER5QyAOJsWwsGaKicIOyLfzWOY=; h=Date:From:To:Subject:In-reply-to:References:From; b=L95njpwz6/+iLl1aFvCOOfK4j/+ZcSW20Xii9GG+gHlmNGI2BQR+IXUrDykipWOSK OGv1ab0jpCha6d8cHn+CIovanU1fFXmXPVVWzfxb22zBohgEl11Hxm05LE2HL2oLG1 WEWmU38Fc8EgMmYGssjCbhEc4MaRQxY4ue1Xps1k=
- In-reply-to: <37c4799b-f7d8-87b3-fca1-48ce3916b779@inlv.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Organization: SCSC
- References: <42ad6851-3c3a-f48b-0742-83df943ce814@inlv.org> <CGME20180305022115epcas4p4cecf009d874d2ced6013ec80a2b1f343@epcas4p4.samsung.com> <37c4799b-f7d8-87b3-fca1-48ce3916b779@inlv.org>
On Mon, 5 Mar 2018 01:54:42 +0000
Martijn Dekker <martijn@xxxxxxxx> wrote:
> Op 14-02-18 om 06:11 schreef Martijn Dekker:
> > I have been experimenting with zcompile to speed up loading sourced
> > library scripts. I found that .zwc files are not used if their
> > timestamp is identical to that of the source file. This can occur,
> > for example, if an installer script installs a script file and
> > zcompiles it immediately after. The granularity of file system
> > timestamps, at least on my system, is not sufficient to register a
> > difference.
> >
> > I think it should be a safe enough assumption that they correspond
> > if the timestamps are identical. The attached patch allows zsh to
> > use .zwc files if their timestamp is greater than, or identical to
> > the source file's timestamp.
>
> Any opinions on this?
Looks OK to me; I've committed it.
Thanks
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author