paleolimbot opened a new pull request, #951:
URL: https://github.com/apache/arrow-nanoarrow/pull/951

   Adds an `as_nanoarrow_array.nanoarrow_vctr()` fast path for full-slice, 
single-chunk vectors. Existing buffers are reused; a shallow array wrapper is 
created only when a data-frame field name must be attached. This avoids 
extension round-trips such as rebuilding GeoArrow geometry through WK.
   
   On a 3.23M-row GeoArrow reproduction, data-frame-to-stream conversion fell 
from 3.44 s to 0.32 s. The available R test suite and `R CMD check --no-manual` 
pass.
   
   ```r
   library(nanoarrow)
   x <- as_nanoarrow_vctr(as_nanoarrow_array(c("one", "two")))
   as.data.frame(as_nanoarrow_array(data.frame(x = x)))
   #>     x
   #> 1 one
   #> 2 two
   ```
   


-- 
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