adriangb commented on PR #18180: URL: https://github.com/apache/datafusion/pull/18180#issuecomment-3423543120
The basic idea is that the `num_rows` parameter is largely constant (the batch size). IIRC I only implemented caching in that PR for dictionary keys and arrays of type null but there's not reason we couldn't expand this to more data types and call sites. Ultimately any call to `array_of_size` where the `ScalarValue` is null should be able to re-use the same underlaying buffer of all null values I think... -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
