Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] ztrsub() execution time / 2
- X-seq: zsh-workers 43704
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] ztrsub() execution time / 2
- Date: Wed, 17 Oct 2018 19:34:22 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:subject:references:date :in-reply-to; s=fm1; bh=z9xSlFyRQbhgkuOtPqq80ZxXgK4r0Ckc3aJDgfKz RE0=; b=RurD7eokddm3axL/hfNuB5fZFeyxXLHTJ5H8e9e0FI7ZsTYp9wGDsqwt BXpEghoLvCABthxcsAP72k4vITQlWuTeA4Ufc0RE5kHWHLGHoXB2iff5Q9INKrnK 8oeqQw1YbOhaLKmjIqdg8nA3xQJ/i56PE3fw5IxOy8t/t49i2cTwbkl3p5H9e+gs PjsFrRmp916uUJm9priXBb0Uktt20z6cq2b5k0wdcMyJl1MLE4aj/RgGekeANDYx 0TvTqmkR0LJs+Lb3DIoRXlkKobV6Ek+++FqClgNL66tiRRDHRZtxMbe+kSPjrGKK /Hwp136z25nKU7hK3yiLDFS+ALGYcQ==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=z9xSlFyRQbhgkuOtPqq80ZxXgK4r0Ckc3aJDgfKzR E0=; b=cTcZdHMX81ok1QXwLoUnuGwICFxprvrMEmg9BmnSGGglTMvz5VsVrmtsx E5Fnr3FweeN+QhTwZtG6NQcYyGC9z8TOQXVrN8/zh8Ac/+YcY9vo7UtdHVoJBN5e /xeC1ViVZlB/stHUGwvFI82HWX4u5DEYgTGwqte3lP/GwnQjyQIRsDLzm5vTB8nG vzF1VnBki9W06JFE61PBh599yx5K5S3rSQg04q4nwu7j9Y/y979q6s5A2gVq8D3z k5ZYnoU3SADrooYJ4DkZRYAcmnPUExeZGD2rWhbqtw7KKc4THZXrkmap9/vWYPnK A3eaGyXxBQ0l2pQa4T2TLqrCgl+tA==
- In-reply-to: <CAKc7PVDWKTwaV-4iMOA0NjBVRMfhu211AYUw5Z9VPS4AmX1x7Q@mail.gmail.com>
- 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
- References: <CAKc7PVCMrcNChf2macaVBohMVRq=BcJy6QjHM4w22i9tJX1pXw@mail.gmail.com> <20181017142503.ueqgcyljm3aalitf@tarpaulin.shahaf.local2> <CAKc7PVDWKTwaV-4iMOA0NjBVRMfhu211AYUw5Z9VPS4AmX1x7Q@mail.gmail.com>
Sebastian Gniazdowski wrote on Wed, 17 Oct 2018 21:02 +0200:
> On Wed, 17 Oct 2018 at 16:25, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> > As far as I can tell, this patch is the sort of transformation that an
> > optimizing compiler should do by itself. In fact, I'm having a hard time
> > seeing how the sequence of "BRANCH IF EQUAL" / "BRANCH IF NOT EQUAL" /
> > "INCREMENT" assembly instructions would be altered by the patch.
> >
> > If your profiling was performed on zsh compiled with -O3, I would suggest that
> > you file a bug against your compiler's optimizer.
>
> Why not "do it right, then do it yourself"? Why ignore -O0 zsh users?
> Should I subscribe to compilers mailing lists and investigate this
> well defined 1-line change, i.e. possible to grasp by logic?
I have a hard time charitably interpreting what you just wrote. It
doesn't come across as constructive.
I think the patch should not be applied because it makes the code harder
to read and to maintain.
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author