-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
Description
The marshaling code generated by hs-bindgen
is based around Storable
: we do a full copy of the data on entry to and on exit from C. One could imagine generating different kind of code, where we deal with mutable types instead, still providing ways to access parts of a larger structure (fields of a struct, say), but without the copying.
This is just a placeholder issue at the moment, marked as low-priority; we're not currently actively planning to do this. But it's perhaps worth thinking about.