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

   Fixes #952.
   
   Cache strings when they are read from an ALTREP vector and reuse them during 
materialization. This keeps accessed CHARSXPs alive across garbage collections 
instead of rebuilding them on every access.
   
   Added regressions for cache retention, partial reads, missing and empty 
values, UTF-8, materialization and copying. The retention regression fails on 
main and passes with the patch. The local R suite passed 1,400 assertions with 
87 optional checks skipped. GC stress checks and pre-commit passed.
   
   In a local benchmark with 200,000 strings, repeated nchar() calls took 13 ms 
instead of 38 ms median over seven passes. The first pass took 42 ms versus 39 
ms. The cache adds one pointer per row after the first non-null string access, 
plus the strings retained after reading.
   


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