paleolimbot commented on issue #67:
URL: https://github.com/apache/arrow-nanoarrow/issues/67#issuecomment-1337508185

   All good! I don't have an example for that pattern yet in examples/ but 
there's a test that does that: 
https://github.com/apache/arrow-nanoarrow/blob/main/src/nanoarrow/array_test.cc#L182-L231
   
   If you want/need to avoid the `memcpy()`, the "deallocator" pattern may be 
helpful. I haven't used it yet in anything except dinky tests but the idea is 
to use it in the R package to avoid copying vectors (just like narrow did): 
https://github.com/apache/arrow-nanoarrow/blob/main/src/nanoarrow/utils_test.cc#L104-L127
   
   > nanoarrow as a lighterweight replacement for Arrow in the creation steps 
of some data pipelines.
   
   That's the whole idea! 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to