Skip to content

Zero-copy bindings? #788

@edsko

Description

@edsko

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.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions