emacs-devel
[Top][All Lists]
Advanced

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

Re: [Emacs-diffs] master 605f901: Prefer memcpy and memset to doing it b


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:
FWIW, I much prefer keeping just the loop, over using this "if+memset"
which seems like an obvious case or too-early-optimization.
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.

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.

Attachment: 0001-Omit-XLI-init-0-optimization-in-make-vector.patch
Description: Source code patch


reply via email to

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