emacs-devel
[Top][All Lists]
Advanced

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

Re: [Emacs-diffs] emacs-25 3eb93c0: Rely on conservative stack scanning


From: Stefan Monnier
Subject: Re: [Emacs-diffs] emacs-25 3eb93c0: Rely on conservative stack scanning to find "emacs_value"s
Date: Thu, 31 Mar 2016 17:29:07 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

> That's cheap: you can do it with linear allocation out of an array.
> Why would that be expensive?

That's very expensive compared to doing nothing.

It means that you have to allocate a new array, loop through the old one
calling your "cheap allocation" function on each element, instead of
just passing the array pointer untouched.

Of course, the advantage of your scheme is that you get to do manual
memory management, with the endless hours of fun that entails.

"There's worse, but it's more expensive!"


        Stefan



reply via email to

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