Exposure of "direct" arrays
"Liam M. Healy" <[email protected]> Mon, 3 Mar 2003 10:30:11 -0500
| Newsgroups | gmane.lisp.uffi.general |
|---|---|
| Message-ID | <[email protected]> |
I brought up a similar question last fall. You might want to take a look at this thread: http://www.b9.com/pipermail/uffi-users/2002-October/000219.html >>>>> "rif" == rif <rif-DPNOqEs/[email protected]> writes: rif> Under CMUCL, there is functionality to make an array accessed by a C rif> program and CL have the "same data" by getting the address of the rif> array from CMUCL. This is obviously risky (the manual suggests you rif> should turn off garbage collection when you do this to avoid your rif> thing getting moved out from udner you, for instance), but I'm finding rif> that at this point, a substantialy fraction of my total runtime (maybe rif> 20%) is spend basically copying my data between my CMUCL array and the rif> foreign array which is passed to C. So is this functionality exposed rif> at all in UFFI, or do I have to switch to using CMUCL's FFI directly rif> in order to get at it?