emacs-devel
[Top][All Lists]
Advanced

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

Re: Dynamic loading progress


From: Paul Eggert
Subject: Re: Dynamic loading progress
Date: Fri, 20 Nov 2015 13:04:22 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

Philipp Stephani wrote:
Modules will
typically be used to wrap existing C or C++ libraries or make heavy use of
such libraries, and those libraries won't use an Emacs-specific allocator.

It's quite likely that wrappers will need to allocate memory to marshal data back and forth between C and Elisp. If I wanted to build a module to use GMP, for example, I'd want to use GMP's low-level primitives that don't do memory management, and have the wrapper manage memory itself.

I suppose some wrappers won't need to manage memory at all, but I'd say most libraries need memory, and the overall system will benefit from having a single memory manager rather than having each library manage its own memory independently.

Have you used the Emacs memory profiler?



reply via email to

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