[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?
- Some dynamic module questions, Helmut Eller, 2020/11/27
- Re: Some dynamic module questions, Philipp Stephani, 2020/11/27
- Re: Some dynamic module questions, Helmut Eller, 2020/11/27
- Re: Some dynamic module questions, Eli Zaretskii, 2020/11/27
- Re: Some dynamic module questions, Helmut Eller, 2020/11/27
- Re: Some dynamic module questions, Eli Zaretskii, 2020/11/27
- Re: Some dynamic module questions, Eli Zaretskii, 2020/11/27
- Re: Some dynamic module questions, Vasilij Schneidermann, 2020/11/27
- Re: Some dynamic module questions,
Eli Zaretskii <=
- Re: Some dynamic module questions, Vasilij Schneidermann, 2020/11/27
- Re: Some dynamic module questions, Eli Zaretskii, 2020/11/27
- Re: Some dynamic module questions, Stefan Monnier, 2020/11/27