emacs-devel
[Top][All Lists]
Advanced

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

Re: Some dynamic module questions


From: Eli Zaretskii
Subject: Re: Some dynamic module questions
Date: Fri, 27 Nov 2020 17:09:04 +0200

> Date: Fri, 27 Nov 2020 14:54:06 +0100
> From: Vasilij Schneidermann <mail@vasilij.de>
> Cc: eller.helmut@gmail.com, p.stephani2@gmail.com, emacs-devel@gnu.org
> 
> > So you'd need to use vectors instead.
> 
> Isn't that remarkably slow though? If you either pass a vector of
> integers on the Lisp side and recreate it on the C side using Flength
> and Farev or have a char array on the C side and create a Lisp array for
> the Lisp side, I can see that operation to outweigh otherwise fast
> foreign code easily. I've only experimented with encoding unibyte
> strings to/from hex strings though when using cryptographic code and
> that was slow enough to ruin the benefit of FFI.

I don't yet see why would you need to send data to a module.  Why not
generate that data in the module code itself, based on some Lisp you
get from Emacs?



reply via email to

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