|
From: | Paul Eggert |
Subject: | Re: [Emacs-diffs] master 605f901: Prefer memcpy and memset to doing it by hand |
Date: | Fri, 5 Feb 2016 14:40:47 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 |
On 02/05/2016 05:25 AM, Stefan Monnier wrote:
Fair enough, I didn't measure it and you're probably right that it's not worth the complexity. I changed it to use just the loop, with the attached patch.FWIW, I much prefer keeping just the loop, over using this "if+memset" which seems like an obvious case or too-early-optimization.
This patch's commit message documents what I had *originally* put in there in my private copy, something that I fondly hope would have made the hair on the back of your neck stand up.
0001-Omit-XLI-init-0-optimization-in-make-vector.patch
Description: Source code patch
[Prev in Thread] | Current Thread | [Next in Thread] |