luxonis / depthai-core

DepthAI C++ Library
MIT License
235 stars 127 forks source link

Develop zerocopy #1053

Closed TheMutta closed 4 months ago

TheMutta commented 4 months ago

This update leverages the new FD protocol in XLink to avoid unecessary copying, allowing for a zerocopy runtime on localhost.

This is allowed by the new memory class, SharedMemory, which instread of containing the data itself, like VectorMemory, it only holds the FD and the mapping.

TheMutta commented 4 months ago

Branch is ready for merge

lnotspotl commented 4 months ago

There is a missing fd at the end of this line