emacs-devel
[Top][All Lists]
Advanced

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

Re: [Emacs-diffs] master 3b48f99: Tune pseudovector allocation assuming


From: Paul Eggert
Subject: Re: [Emacs-diffs] master 3b48f99: Tune pseudovector allocation assuming Qnil == 0
Date: Mon, 19 Jan 2015 01:03:48 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0

Stefan Monnier wrote:
Is Qnil==0 true for all builds?

Yes, that's been true since Jan 10. I looked, and there are some other places where we can profitably prefer memset to assigning Qnil by hand; I did this in commit b7f83adda5a32140811e8e7decc4394d64cada3d just now.

Maybe it's better to do

   if (Qnil == 0)
      <newcode>
   else
      <oldcode>

It's a bit simpler to verify that Qnil is zero, as in the abovementioned commit.



reply via email to

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