[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] master 3b48f99: Tune pseudovector allocation assuming
From: |
Stefan Monnier |
Subject: |
Re: [Emacs-diffs] master 3b48f99: Tune pseudovector allocation assuming Qnil == 0 |
Date: |
Fri, 16 Jan 2015 11:31:58 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
> + /* Only the first lisplen slots will be traced normally by the GC.
> + But since Qnil == 0, we can memset Lisp_Object slots as well. */
> + memset (v->contents, 0, zerolen * word_size);
Is Qnil==0 true for all builds? Maybe it's better to do
if (Qnil == 0)
<newcode>
else
<oldcode>
-- Stefan
- Re: [Emacs-diffs] master 3b48f99: Tune pseudovector allocation assuming Qnil == 0,
Stefan Monnier <=