[CM] Fastest way to copy scheme variables into a shared buffer?

Iain Duncan iainduncanlists at gmail.com
Sun Jan 23 08:28:11 PST 2022

thanks Bill, I will try playing with those and see if it makes enough of a


On Sat, Jan 22, 2022 at 9:30 AM <bil at ccrma.stanford.edu> wrote:

> If the numbers are just integers or just floats, you
> could use float-vectors or int-vectors (or byte-vector)
> in s7, and use memcpy to copy the data from the C int64_t
> or double array (or actually share the data: see
> s7_float_vector_elements and s7_int_vector_elements).
> If the inner vectors are all the same size, you
> can grab all of them in one operation by using
> s7 multidimensional vectors.  Otherwise, I think
> you'll need to use s7_integer, s7_real, and maybe
> the make-* cases -- kinda slow, perhaps --
> I'm probably forgetting something obvious.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cm-mail.stanford.edu/pipermail/cmdist/attachments/20220123/d115ac87/attachment.html>

More information about the Cmdist mailing list